|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.mapping.xml.MappingNode
public abstract class MappingNode
There will be a mapping node for every entity (element or attribute) in a target XML document.
MappingNodeConstants
,
Serialized FormConstructor Summary | |
---|---|
MappingNode()
default constructor |
Method Summary | |
---|---|
abstract void |
acceptVisitor(MappingVisitor visitor)
|
MappingNode |
addChild(MappingNode node)
Add a child mapping node to this one. |
boolean |
equals(java.lang.Object obj)
Compare the symbol based ONLY on properties (including name), NOT on parent node and children nodes (or lack thereof). |
static MappingNode |
findNode(MappingNode root,
java.lang.String partialName)
|
java.util.List |
getChildren()
Get the children contained by this node, or an empty List |
java.util.List |
getChildren(java.lang.String type)
Get all children of this node of a specified target node type. |
java.lang.String |
getFullyQualifiedName()
Gets the fully qualified name of this node, this is obtained by concatenating the nodes name to the parents qualified name with a delimiter in between them. |
java.lang.String |
getName()
|
java.lang.String |
getNameInSource()
|
java.util.List |
getNodeChildren()
|
java.util.Map |
getNodeProperties()
Returns the actual local properties object, instantiates if necessary. |
MappingNode |
getParent()
Get the parent of this node. |
java.lang.String |
getPathName()
|
java.lang.Object |
getProperty(java.lang.Integer propertyID)
Retrieve one of the Object values, keyed off the Integer property keys defined in MappingNodeConstants.Properties |
MappingSourceNode |
getSourceNode()
Get the source node for this Mapping Node; note that only mapping elements and mapping attributes have the source nodes; that too ones with specified with NameInSource specified attribute. |
int |
hashCode()
Return a hash code for this symbol. |
boolean |
isExcluded()
|
static void |
printMappingNodeTree(MappingNode root,
java.io.PrintStream output)
Prints the whole tree of MappingNodes to the provided PrintStream. |
MappingNode |
setExclude(boolean exclude)
|
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
static java.lang.String |
toStringNodeTree(MappingNode root)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MappingNode()
Method Detail |
---|
public MappingNode getParent()
public static MappingNode findNode(MappingNode root, java.lang.String partialName)
public java.util.List getChildren()
public java.util.List getChildren(java.lang.String type)
#ATTRIBUTE
or #ELEMENT
.
public java.util.List getNodeChildren()
public MappingNode addChild(MappingNode node)
MappingNode
- to add as a child of this node
public java.lang.Object getProperty(java.lang.Integer propertyID)
MappingNodeConstants.Properties
propertyID
- Integer property key
public java.util.Map getNodeProperties()
#getProperties
unless absolutely necessary.
#getProperties
public java.lang.String getFullyQualifiedName()
Gets the fully qualified name of this node, this is obtained by concatenating the nodes name to the parents qualified name with a delimiter in between them.
public java.lang.String getName()
public java.lang.String getPathName()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Other object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static void printMappingNodeTree(MappingNode root, java.io.PrintStream output)
public static java.lang.String toStringNodeTree(MappingNode root)
public MappingNode setExclude(boolean exclude)
public boolean isExcluded()
public abstract void acceptVisitor(MappingVisitor visitor)
public MappingSourceNode getSourceNode()
public java.lang.String getNameInSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |