org.sblim.cimclient.internal.cimxml.sax.node
Class SimpleRspNode

java.lang.Object
  extended by org.sblim.cimclient.internal.cimxml.sax.node.Node
      extended by org.sblim.cimclient.internal.cimxml.sax.node.AbstractMessageNode
          extended by org.sblim.cimclient.internal.cimxml.sax.node.AbstractResponseNode
              extended by org.sblim.cimclient.internal.cimxml.sax.node.AbstractSimpleRspNode
                  extended by org.sblim.cimclient.internal.cimxml.sax.node.SimpleRspNode
All Implemented Interfaces:
ErrorIf, NonVolatileIf, RetValPipeIf, NodeConstIf

public class SimpleRspNode
extends AbstractSimpleRspNode

 ELEMENT SIMPLERSP (METHODRESPONSE | IMETHODRESPONSE | SIMPLEREQACK)
 
 ELEMENT METHODRESPONSE (ERROR|(RETURNVALUE?,PARAMVALUE*))
 ELEMENT IMETHODRESPONSE (ERROR|IRETURNVALUE?) *
 


Field Summary
 
Fields inherited from interface org.sblim.cimclient.internal.cimxml.sax.NodeConstIf
CIM, CLASS, CLASSNAME, CLASSPATH, DECLARATION, DECLGROUP, DECLGROUP_WITHNAME, DECLGROUP_WITHPATH, ERROR, EXPMETHODCALL, EXPMETHODRESPONSE, EXPPARAMVALUE, HOST, IMETHODCALL, IMETHODRESPONSE, INSTANCE, INSTANCENAME, INSTANCEPATH, IPARAMVALUE, IRETURNVALUE, KEYBINDING, KEYVALUE, LOCALCLASSPATH, LOCALINSTANCEPATH, LOCALNAMESPACEPATH, MESSAGE, METHOD, METHODCALL, METHODRESPONSE, MULTIEXPREQ, MULTIEXPRSP, MULTIREQ, MULTIRSP, NAMESPACE, NAMESPACEPATH, OBJECTPATH, PARAMETER, PARAMETER_ARRAY, PARAMETER_REFARRAY, PARAMETER_REFERENCE, PARAMVALUE, PROPERTY, PROPERTY_ARRAY, PROPERTY_REFERENCE, QUALIFIER, QUALIFIER_DECLARATION, RESPONSEDESTINATION, RETURNVALUE, SCOPE, SIMPLEEXPREQ, SIMPLEEXPRSP, SIMPLEREQ, SIMPLEREQACK, SIMPLERSP, VALUE, VALUE_ARRAY, VALUE_INSTANCEWITHPATH, VALUE_NAMEDINSTANCE, VALUE_NAMEDOBJECT, VALUE_NULL, VALUE_OBJECT, VALUE_OBJECTWITHLOCALPATH, VALUE_OBJECTWITHPATH, VALUE_REFARRAY, VALUE_REFERENCE
 
Constructor Summary
SimpleRspNode()
          Ctor.
 
Method Summary
 void addChild(Node pChild)
          Have to be called by SAX's DefaultHandler.startElement() after testChild() call.
 CIMArgument<?>[] getCIMArguments()
          getCIMArguments : returns the array of parsed parameters and their values : String name, CIMDataType type, Object value
 CIMError getCIMError()
          getCIMError
 int getReturnValueCount()
          getReturnValueCount
 void init(org.xml.sax.Attributes pAttribs, SAXSession pSession)
          The SAX ContentHandler implementation calls this method after testChild() and addChild() calls.
 void parseData(java.lang.String pData)
          XML element's data have to be passed
 java.lang.Object readReturnValue()
          readReturnValue
 void testChild(java.lang.String pNodeNameEnum)
          It have to be called by SAX's DefaultHandler implementation when it detects a new child element (startElement()).
 void testCompletness()
          It have to be called by SAX's DefaultHandler.endElement().
 
Methods inherited from class org.sblim.cimclient.internal.cimxml.sax.node.AbstractMessageNode
childParsed
 
Methods inherited from class org.sblim.cimclient.internal.cimxml.sax.node.Node
clearCompleted, duplicatedNode, getArraySize, getBoolAttribute, getCIMName, getCIMType, getCIMType, getClassName, getClassOrigin, getNodeName, getParamType, getPropagated, getQualifierFlavor, getReferenceClass, hasTrueAttribute, illegalChildNodePair, isCompleted, setCompleted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRspNode

public SimpleRspNode()
Ctor.

Method Detail

addChild

public void addChild(Node pChild)
Description copied from interface: NonVolatileIf
Have to be called by SAX's DefaultHandler.startElement() after testChild() call.


init

public void init(org.xml.sax.Attributes pAttribs,
                 SAXSession pSession)
Description copied from class: Node
The SAX ContentHandler implementation calls this method after testChild() and addChild() calls. The implementation must reset it's instance unless it implements NonVolatileIf

Specified by:
init in class Node
Parameters:
pAttribs -
pSession -

parseData

public void parseData(java.lang.String pData)
Description copied from class: Node
XML element's data have to be passed

Specified by:
parseData in class Node
Parameters:
pData -

testChild

public void testChild(java.lang.String pNodeNameEnum)
               throws org.xml.sax.SAXException
Description copied from class: Node
It have to be called by SAX's DefaultHandler implementation when it detects a new child element (startElement()).

Specified by:
testChild in class Node
Parameters:
pNodeNameEnum - - the name of the child element, it must be one of the String constant defined in class Node, because the implementer subclasses uses reference based equals comparisons (==)
Throws:
org.xml.sax.SAXException - - It have to be thrown when the Node cannot have pNodeNameEnum named child Node.

testCompletness

public void testCompletness()
                     throws org.xml.sax.SAXException
Description copied from class: Node
It have to be called by SAX's DefaultHandler.endElement(). It's task is to check that the Element is built up correctly. The implementer function can do some post processing here. testCompletness

Specified by:
testCompletness in class Node
Throws:
org.xml.sax.SAXException - It must be thrown when the Node is not valid.

getCIMError

public CIMError getCIMError()
Description copied from interface: ErrorIf
getCIMError

Specified by:
getCIMError in interface ErrorIf
Specified by:
getCIMError in class AbstractSimpleRspNode
Returns:
CIMError

getCIMArguments

public CIMArgument<?>[] getCIMArguments()
getCIMArguments : returns the array of parsed parameters and their values : String name, CIMDataType type, Object value

Specified by:
getCIMArguments in class AbstractSimpleRspNode
Returns:
CIMArgument[]

getReturnValueCount

public int getReturnValueCount()
Description copied from interface: RetValPipeIf
getReturnValueCount

Returns:
the currently available return values

readReturnValue

public java.lang.Object readReturnValue()
Description copied from interface: RetValPipeIf
readReturnValue

Returns:
a return value Object from a FIFO


Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.