public abstract class Node extends Object implements 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
Modifier and Type | Method and Description |
---|---|
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(String pParsedNodeName,
String pNewNodeName)
duplicatedNode
|
static int |
getArraySize(Attributes pAttribs)
ENTITY % ArraySize "ARRAYSIZE CDATA #IMPLIED"
|
static boolean |
getBoolAttribute(Attributes pAttribs,
String pName,
boolean pDefVal)
getBoolAttribute
|
static String |
getCIMName(Attributes pAttribs)
ENTITY % CIMName "NAME CDATA #REQUIRED"
|
static CIMDataType |
getCIMType(Attributes pAttribs)
getCIMType(pAttribs, pOptional=false);
|
static CIMDataType |
getCIMType(Attributes pAttribs,
boolean pOptional)
ENTITY % CIMType "TYPE
(boolean|string|char16|uint8|sint8|uint16|sint16|uint32
|sint32|uint64|sint64|datetime|real32|real64)" getCIMType
|
static String |
getClassName(Attributes pAttribs)
ENTITY % ClassName "CLASSNAME CDATA #REQUIRED"
|
static String |
getClassOrigin(Attributes pAttribs)
ENTITY % ClassOrigin "CLASSORIGIN CDATA #IMPLIED
|
String |
getNodeName()
getNodeName
|
static CIMDataType |
getParamType(Attributes pAttribs)
ENTITY % ParamType "PARAMTYPE (
boolean|string|char16|uint8|sint8|uint16|sint16
|uint32|sint32|uint64|sint64|datetime| real32|real64|reference)
|
static boolean |
getPropagated(Attributes pAttribs)
ENTITY % Propagated "PROPAGATED (true|false) 'false'" getPropagated
|
int |
getQualifierFlavor(Attributes pAttribs)
ENTITY % QualifierFlavor "
OVERRIDABLE (true|false) 'true'
TOSUBCLASS (true|false) 'true'
TOINSTANCE (true|false) 'false'
TRANSLATABLE (true|false) 'false'"
|
static String |
getReferenceClass(Attributes pAttribs)
ENTITY % ReferenceClass "REFERENCECLASS CDATA #IMPLIED"
|
static boolean |
hasTrueAttribute(Attributes pAttribs,
String pName)
hasTrueAttribute
|
void |
illegalChildNodePair(String pNodeName0,
String pNodeName1)
illegalChildNodePair
|
abstract void |
init(Attributes pAttribs,
SAXSession pSession)
The SAX ContentHandler implementation calls this method after testChild()
and addChild() calls.
|
boolean |
isCompleted()
completed
|
abstract void |
parseData(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(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().
|
public Node(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).public String getNodeName()
public abstract void init(Attributes pAttribs, SAXSession pSession) throws SAXException
pAttribs
- pSession
- - stores variables which are common for the whole SAX parsing
sessionSAXException
public abstract void parseData(String pData) throws SAXException
pData
- - String which is concatenated in SAX's
DefaultHandler.characters() implementation.SAXException
public abstract void testChild(String pNodeNameEnum) throws 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 comparisons (==)SAXException
- - It have to be thrown when the Node cannot have
pNodeNameEnum named child Node.public abstract void testCompletness() throws SAXException
SAXException
- It must be thrown when the Node is not valid.public abstract void childParsed(Node pChild) throws SAXException
pChild
- 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 String getCIMName(Attributes pAttribs) throws SAXException
pAttribs
- SAXException
public static String getClassName(Attributes pAttribs) throws SAXException
pAttribs
- SAXException
public static String getReferenceClass(Attributes pAttribs)
pAttribs
- public static String getClassOrigin(Attributes pAttribs)
pAttribs
- public static boolean getPropagated(Attributes pAttribs)
pAttribs
- public static int getArraySize(Attributes pAttribs)
pAttribs
- public static CIMDataType getCIMType(Attributes pAttribs, boolean pOptional) throws SAXException
pAttribs
- pOptional
- SAXException
public static CIMDataType getCIMType(Attributes pAttribs) throws SAXException
pAttribs
- SAXException
public static CIMDataType getParamType(Attributes pAttribs)
pAttribs
- public int getQualifierFlavor(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(Attributes pAttribs, String pName)
pAttribs
- pName
- public static boolean getBoolAttribute(Attributes pAttribs, String pName, boolean pDefVal)
pAttribs
- pName
- pDefVal
- public void duplicatedNode(String pParsedNodeName, String pNewNodeName) throws SAXException
pParsedNodeName
- pNewNodeName
- SAXException
public void illegalChildNodePair(String pNodeName0, String pNodeName1) throws SAXException
pNodeName0
- pNodeName1
- SAXException
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.