|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.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. |
MappingNode |
clone()
|
boolean |
equals(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,
String partialName)
|
List<MappingNode> |
getChildren()
Get the children contained by this node, or an empty List |
List<MappingNode> |
getChildren(String type)
Get all children of this node of a specified target node type. |
ElementSymbol |
getElementSymbol()
|
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. |
String |
getName()
|
String |
getNameInSource()
|
List<MappingNode> |
getNodeChildren()
|
Map<MappingNodeConstants.Properties,Object> |
getNodeProperties()
Returns the actual local properties object, instantiates if necessary. |
MappingNode |
getParent()
Get the parent of this node. |
String |
getPathName()
|
Object |
getProperty(MappingNodeConstants.Properties 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,
PrintStream output)
Prints the whole tree of MappingNodes to the provided PrintStream. |
MappingNode |
setExclude(boolean exclude)
|
String |
toString()
Returns a string representation of an instance of this class. |
static String |
toStringNodeTree(MappingNode root)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MappingNode()
Method Detail |
---|
public MappingNode getParent()
public static MappingNode findNode(MappingNode root, String partialName)
public List<MappingNode> getChildren()
public List<MappingNode> getChildren(String type)
#ATTRIBUTE
or #ELEMENT
.
public List<MappingNode> getNodeChildren()
public MappingNode addChild(MappingNode node)
MappingNode
- to add as a child of this node
public Object getProperty(MappingNodeConstants.Properties propertyID)
MappingNodeConstants.Properties
propertyID
- Integer property key
public Map<MappingNodeConstants.Properties,Object> getNodeProperties()
#getProperties
unless absolutely necessary.
#getProperties
public 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 String getName()
public String getPathName()
public boolean equals(Object obj)
equals
in class Object
obj
- Other object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public static void printMappingNodeTree(MappingNode root, PrintStream output)
public static String toStringNodeTree(MappingNode root)
public MappingNode setExclude(boolean exclude)
public boolean isExcluded()
public abstract void acceptVisitor(MappingVisitor visitor)
public MappingSourceNode getSourceNode()
public String getNameInSource()
public MappingNode clone()
clone
in class Object
public ElementSymbol getElementSymbol()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |