|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.cimclient.internal.cimxml.sax.node.Node
public abstract class Node
Class Node is the abstract base class of all parseable XML elements. It contains helper functions for the implementations.
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_NAMEDINSTANCE, VALUE_NAMEDOBJECT, VALUE_NULL, VALUE_OBJECT, VALUE_OBJECTWITHLOCALPATH, VALUE_OBJECTWITHPATH, VALUE_REFARRAY, VALUE_REFERENCE |
Constructor Summary | |
---|---|
Node(java.lang.String pNameEnum)
Ctor. |
Method Summary | |
---|---|
abstract void |
childParsed(Node pChild)
Have to be called by SAX's DefaultHandler.endElement() |
void |
clearCompleted()
When a Node instance is going to be reused, this function must be called before. |
void |
duplicatedNode(java.lang.String pParsedNodeName,
java.lang.String pNewNodeName)
duplicatedNode |
static int |
getArraySize(org.xml.sax.Attributes pAttribs)
ENTITY % ArraySize "ARRAYSIZE CDATA #IMPLIED" |
static boolean |
getBoolAttribute(org.xml.sax.Attributes pAttribs,
java.lang.String pName,
boolean pDefVal)
getBoolAttribute |
static java.lang.String |
getCIMName(org.xml.sax.Attributes pAttribs)
ENTITY % CIMName "NAME CDATA #REQUIRED" |
static CIMDataType |
getCIMType(org.xml.sax.Attributes pAttribs)
getCIMType(pAttribs, pOptional=false); |
static CIMDataType |
getCIMType(org.xml.sax.Attributes pAttribs,
boolean pOptional)
ENTITY % CIMType "TYPE (boolean|string|char16|uint8|sint8|uint16|sint16|uint32|sint32|uint64|sint64|datetime|real32|real64)" getCIMType |
static java.lang.String |
getClassName(org.xml.sax.Attributes pAttribs)
ENTITY % ClassName "CLASSNAME CDATA #REQUIRED" |
static java.lang.String |
getClassOrigin(org.xml.sax.Attributes pAttribs)
ENTITY % ClassOrigin "CLASSORIGIN CDATA #IMPLIED |
java.lang.String |
getNodeName()
getNodeName |
static CIMDataType |
getParamType(org.xml.sax.Attributes pAttribs)
ENTITY % ParamType "PARAMTYPE ( boolean|string|char16|uint8|sint8|uint16|sint16|uint32|sint32|uint64|sint64|datetime| real32|real64|reference) |
static boolean |
getPropagated(org.xml.sax.Attributes pAttribs)
ENTITY % Propagated "PROPAGATED (true|false) 'false'" getPropagated |
int |
getQualifierFlavor(org.xml.sax.Attributes pAttribs)
ENTITY % QualifierFlavor " OVERRIDABLE (true|false) 'true' TOSUBCLASS (true|false) 'true' TOINSTANCE (true|false) 'false' TRANSLATABLE (true|false) 'false'" |
static java.lang.String |
getReferenceClass(org.xml.sax.Attributes pAttribs)
ENTITY % ReferenceClass "REFERENCECLASS CDATA #IMPLIED" |
static boolean |
hasTrueAttribute(org.xml.sax.Attributes pAttribs,
java.lang.String pName)
hasTrueAttribute |
void |
illegalChildNodePair(java.lang.String pNodeName0,
java.lang.String pNodeName1)
illegalChildNodePair |
abstract void |
init(org.xml.sax.Attributes pAttribs,
SAXSession pSession)
The SAX ContentHandler implementation calls this method after testChild() and addChild() calls. |
static java.util.ArrayList |
initArrayList(java.util.ArrayList pAL)
initArrayList |
boolean |
isCompleted()
completed |
abstract void |
parseData(java.lang.String pData)
XML element's data have to be passed |
void |
setCompleted()
Have to be called by SAX's DefaultHandler at endElement(), after calling testCompletness(). |
abstract void |
testChild(java.lang.String pNodeNameEnum)
It have to be called by SAX's DefaultHandler implementation when it detects a new child element (startElement()). |
abstract void |
testCompletness()
It have to be called by SAX's DefaultHandler.endElement(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Node(java.lang.String pNameEnum)
pNameEnum
- The name of the node which must be a String constant which is
defined inside this class (because the implementation compares
by reference).Method Detail |
---|
public java.lang.String getNodeName()
public abstract void init(org.xml.sax.Attributes pAttribs, SAXSession pSession) throws org.xml.sax.SAXException
pAttribs
- pSession
- -
stores variables which are common for the whole SAX parsing
session
org.xml.sax.SAXException
public abstract void parseData(java.lang.String pData) throws org.xml.sax.SAXException
pData
- -
String which is concatenated in SAX's
DefaultHandler.characters() implementation.
org.xml.sax.SAXException
public abstract void testChild(java.lang.String pNodeNameEnum) throws org.xml.sax.SAXException
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 comparisions (==)
org.xml.sax.SAXException
- -
It have to be thrown when the Node cannot have pNodeNameEnum
named child Node.public abstract void testCompletness() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- It must be thrown when the Node is not valid.public abstract void childParsed(Node pChild) throws org.xml.sax.SAXException
pChild
-
org.xml.sax.SAXException
- -
parent Nodes can make conversions here (e.g. type string into
CIMDataType), failed operation should throw SAXException)public boolean isCompleted()
public void setCompleted()
public void clearCompleted()
public static java.util.ArrayList initArrayList(java.util.ArrayList pAL)
pAL
-
public static java.lang.String getCIMName(org.xml.sax.Attributes pAttribs) throws org.xml.sax.SAXException
pAttribs
-
org.xml.sax.SAXException
public static java.lang.String getClassName(org.xml.sax.Attributes pAttribs) throws org.xml.sax.SAXException
pAttribs
-
org.xml.sax.SAXException
public static java.lang.String getReferenceClass(org.xml.sax.Attributes pAttribs)
pAttribs
-
public static java.lang.String getClassOrigin(org.xml.sax.Attributes pAttribs)
pAttribs
-
public static boolean getPropagated(org.xml.sax.Attributes pAttribs)
pAttribs
-
public static int getArraySize(org.xml.sax.Attributes pAttribs)
pAttribs
-
public static CIMDataType getCIMType(org.xml.sax.Attributes pAttribs, boolean pOptional) throws org.xml.sax.SAXException
pAttribs
- pOptional
-
org.xml.sax.SAXException
public static CIMDataType getCIMType(org.xml.sax.Attributes pAttribs) throws org.xml.sax.SAXException
pAttribs
-
org.xml.sax.SAXException
public static CIMDataType getParamType(org.xml.sax.Attributes pAttribs)
pAttribs
-
public int getQualifierFlavor(org.xml.sax.Attributes pAttribs)
ENTITY % QualifierFlavor " OVERRIDABLE (true|false) 'true' TOSUBCLASS (true|false) 'true' TOINSTANCE (true|false) 'false' TRANSLATABLE (true|false) 'false'"
pAttribs
-
public static boolean hasTrueAttribute(org.xml.sax.Attributes pAttribs, java.lang.String pName)
pAttribs
- pName
-
public static boolean getBoolAttribute(org.xml.sax.Attributes pAttribs, java.lang.String pName, boolean pDefVal)
pAttribs
- pName
- pDefVal
-
public void duplicatedNode(java.lang.String pParsedNodeName, java.lang.String pNewNodeName) throws org.xml.sax.SAXException
pParsedNodeName
- pNewNodeName
-
org.xml.sax.SAXException
public void illegalChildNodePair(java.lang.String pNodeName0, java.lang.String pNodeName1) throws org.xml.sax.SAXException
pNodeName0
- pNodeName1
-
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |