|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.util.xml.FieldNode
A place holder for the org.w3c.dom.Node that would represent a field - either an attribute (org.w3c.dom.Attr) or the simple content #text (org.w3c.dom.Text). The place holder is necessary because the Node may be null if it doesn't yet have a value.
Field Summary | |
protected static int |
_debugLevel
|
protected org.w3c.dom.Element |
_element
|
protected java.lang.String |
_fieldName
|
protected org.w3c.dom.Node |
_node
|
Constructor Summary | |
protected |
FieldNode()
|
protected |
FieldNode(org.w3c.dom.Element element,
org.w3c.dom.Node node,
java.lang.String fieldName)
|
Method Summary | |
protected static void |
debug(int level,
java.lang.String message)
|
boolean |
equals(java.lang.Object o)
|
static FieldNode |
getFieldNode(org.w3c.dom.Element element,
org.w3c.dom.Node node,
java.lang.String fieldName)
Gets a FieldNode that corresponds to these parameters. |
static FieldNode |
getFieldNode(org.w3c.dom.Node node)
Gets a FieldNode that corresponds to a non-null Node. |
org.w3c.dom.Node |
getNode()
Gets the Node. |
java.lang.String |
getNodeName()
Same as the org.w3c.dom.Node method. |
java.lang.String |
getNodeValue()
Same as the org.w3c.dom.Node method. |
org.w3c.dom.Node |
getParentNode()
Same as the org.w3c.dom.Node method. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static int _debugLevel
protected org.w3c.dom.Node _node
protected org.w3c.dom.Element _element
protected java.lang.String _fieldName
Constructor Detail |
protected FieldNode()
protected FieldNode(org.w3c.dom.Element element, org.w3c.dom.Node node, java.lang.String fieldName)
Method Detail |
protected static void debug(int level, java.lang.String message)
public static FieldNode getFieldNode(org.w3c.dom.Node node)
node
- The Attr or Text Node.
public static FieldNode getFieldNode(org.w3c.dom.Element element, org.w3c.dom.Node node, java.lang.String fieldName)
element
- The owner element of the field.node
- The Node for this field or null.fieldName
- The node name of the field if the Node is not given.
public org.w3c.dom.Node getParentNode()
public java.lang.String getNodeName()
public java.lang.String getNodeValue()
public org.w3c.dom.Node getNode()
public boolean equals(java.lang.Object o)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |