com.vhosting.netconf.frame
Interface RpcReplyErrorInfo


public interface RpcReplyErrorInfo

The RPC reply error info. This interface provides more detailed information about an error contained in an RPC reply.

Version:
1.00, 02/11/2010
Author:
Giuseppe Palmeri

Nested Class Summary
static class RpcReplyErrorInfo.ErrorElement
          This enumeration represents all the elements of which it is possible to have more information.
 
Method Summary
 org.w3c.dom.Element getDataModelSpecificErrorInfo(java.lang.String namespaceURI, java.lang.String nodeName)
          Get a data model specific error informations.
 java.lang.String getProtocolErrorInfo(RpcReplyErrorInfo.ErrorElement errorElement)
          Get informations for the specific error element.
 boolean hasDataModelSpecificErrorInfo(java.lang.String namespaceURI, java.lang.String nodeName)
          Check whether it was returned to a certain type of data model specific error informations.
 boolean hasProtocolErrorInfo(RpcReplyErrorInfo.ErrorElement errorElement)
          Check if any information about the error element specified.
 

Method Detail

hasProtocolErrorInfo

boolean hasProtocolErrorInfo(RpcReplyErrorInfo.ErrorElement errorElement)
Check if any information about the error element specified.

Parameters:
errorElement - The error element.
Returns:
true if the error element was returned; false otherwise.

getProtocolErrorInfo

java.lang.String getProtocolErrorInfo(RpcReplyErrorInfo.ErrorElement errorElement)
Get informations for the specific error element.

Parameters:
errorElement - The error element.
Returns:
The error element; null if it was not returned.

hasDataModelSpecificErrorInfo

boolean hasDataModelSpecificErrorInfo(java.lang.String namespaceURI,
                                      java.lang.String nodeName)
Check whether it was returned to a certain type of data model specific error informations.

Parameters:
namespaceURI - The XML namespace URI of the data model.
nodeName - The XML root element for the data model.
Returns:
true if exists errors about the data model; false otherwise.

getDataModelSpecificErrorInfo

org.w3c.dom.Element getDataModelSpecificErrorInfo(java.lang.String namespaceURI,
                                                  java.lang.String nodeName)
Get a data model specific error informations.

Parameters:
namespaceURI - The XML namespace URI of the data model.
nodeName - The XML root element for the data model.
Returns:
The XML DOM element as root of the data model error informations; null if there are no errors about the data model.