com.metamatrix.query.mapping.xml
Class MappingBaseNode

java.lang.Object
  extended by com.metamatrix.query.mapping.xml.MappingNode
      extended by com.metamatrix.query.mapping.xml.MappingBaseNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
MappingAllNode, MappingChoiceNode, MappingCriteriaNode, MappingDocument, MappingElement, MappingSequenceNode, MappingSourceNode

public abstract class MappingBaseNode
extends MappingNode

This is base class to define all nodes except the attribute. However, this quite not enough to define a Element node. Specially designed for sequence, choice and all node types

See Also:
Serialized Form

Constructor Summary
protected MappingBaseNode()
           
 
Method Summary
 MappingAllNode addAllNode(MappingAllNode elem)
           
 MappingElement addChildElement(MappingElement elem)
           
 MappingChoiceNode addChoiceNode(MappingChoiceNode elem)
           
 MappingCriteriaNode addCriteriaNode(MappingCriteriaNode node)
           
 MappingSequenceNode addSequenceNode(MappingSequenceNode elem)
           
 MappingSourceNode addSourceNode(MappingSourceNode elem)
           
 void addStagingTable(java.lang.String tablename)
           
 java.lang.String getCanonicalName()
           
 MappingDocument getDocument()
          Get the document node of this node.
 int getMaxOccurence()
           
 int getMinOccurence()
           
 java.lang.String getName()
           
 MappingBaseNode getParentNode()
           
 java.lang.String getRecursionId()
           
 java.lang.String getSource()
           
 java.util.List getStagingTables()
           
 boolean isDocumentNode()
           
 boolean isRootRecursiveNode()
           
 boolean isTagRoot()
          A tag root node is the first visual node (Element to be specific) in the document tree which is the root element in the output xml document.
 void removeChildNode(MappingBaseNode toRemove)
           
 MappingBaseNode setMaxOccurrs(int cardinality)
           
 MappingBaseNode setMinOccurrs(int cardinality)
           
 MappingBaseNode setSource(java.lang.String source)
           
 void setStagingTables(java.util.List tables)
           
 
Methods inherited from class com.metamatrix.query.mapping.xml.MappingNode
acceptVisitor, addChild, equals, findNode, getChildren, getChildren, getFullyQualifiedName, getNameInSource, getNodeChildren, getNodeProperties, getParent, getPathName, getProperty, getSourceNode, hashCode, isExcluded, printMappingNodeTree, setExclude, toString, toStringNodeTree
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappingBaseNode

protected MappingBaseNode()
Method Detail

setMinOccurrs

public MappingBaseNode setMinOccurrs(int cardinality)

setMaxOccurrs

public MappingBaseNode setMaxOccurrs(int cardinality)

setSource

public MappingBaseNode setSource(java.lang.String source)

getSource

public java.lang.String getSource()

addChildElement

public MappingElement addChildElement(MappingElement elem)

addChoiceNode

public MappingChoiceNode addChoiceNode(MappingChoiceNode elem)

addSequenceNode

public MappingSequenceNode addSequenceNode(MappingSequenceNode elem)

addAllNode

public MappingAllNode addAllNode(MappingAllNode elem)

addSourceNode

public MappingSourceNode addSourceNode(MappingSourceNode elem)

addCriteriaNode

public MappingCriteriaNode addCriteriaNode(MappingCriteriaNode node)

getParentNode

public MappingBaseNode getParentNode()

getName

public java.lang.String getName()
Overrides:
getName in class MappingNode

getCanonicalName

public java.lang.String getCanonicalName()

removeChildNode

public void removeChildNode(MappingBaseNode toRemove)

getMinOccurence

public int getMinOccurence()

getMaxOccurence

public int getMaxOccurence()

getRecursionId

public java.lang.String getRecursionId()

isRootRecursiveNode

public boolean isRootRecursiveNode()

getDocument

public MappingDocument getDocument()
Get the document node of this node.

Returns:

isDocumentNode

public boolean isDocumentNode()

isTagRoot

public boolean isTagRoot()
A tag root node is the first visual node (Element to be specific) in the document tree which is the root element in the output xml document.

Returns:
true if

getStagingTables

public java.util.List getStagingTables()

setStagingTables

public void setStagingTables(java.util.List tables)

addStagingTable

public void addStagingTable(java.lang.String tablename)


Copyright © 2009. All Rights Reserved.