|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.mapping.xml.MappingNode
com.metamatrix.query.mapping.xml.MappingBaseNode
com.metamatrix.query.mapping.xml.MappingElement
public class MappingElement
A Mapping Node which defines a Element in XML Schema Mapping document
Constructor Summary | |
---|---|
MappingElement(java.lang.String name)
|
|
MappingElement(java.lang.String name,
Namespace namespace)
|
|
MappingElement(java.lang.String name,
java.lang.String nameInSource)
|
Method Summary | |
---|---|
void |
acceptVisitor(MappingVisitor visitor)
|
MappingElement |
addAttribute(MappingAttribute attr)
Adds the attribute node to the current node and returns the current node |
MappingCommentNode |
addCommentNode(MappingCommentNode elem)
Adds a comment node to the current element and returns the added child node |
void |
addNamespace(Namespace space)
|
MappingElement |
addSibilingElement(MappingElement elem)
Adds a sibiling node to the current node and returns the added sibiling node; |
java.util.List |
getAttributes()
Get all the attributes on this Node |
java.lang.String |
getDefaultValue()
|
ElementSymbol |
getElementSymbol()
|
java.lang.String |
getName()
Name of the node |
java.lang.String |
getNameInSource()
|
Namespace |
getNamespace()
|
java.lang.String |
getNamespacePrefix()
Namespace prefix |
Namespace[] |
getNamespaces()
Namespaces to be decalred |
java.util.Properties |
getNamespacesAsProperties()
|
java.lang.String |
getNormalizeText()
|
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. |
java.lang.String |
getType()
|
java.lang.String |
getValue()
|
boolean |
hasAttributes()
|
boolean |
isAlwaysInclude()
|
boolean |
isNillable()
|
boolean |
isOptional()
|
boolean |
isRecursive()
true if this element is recursive element; false otherwise |
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 |
removeAttribute(MappingAttribute toRemove)
Remove attribute node from element |
MappingElement |
setAlwaysInclude(boolean include)
|
MappingElement |
setDefaultValue(java.lang.String value)
|
void |
setElementSymbol(ElementSymbol symbol)
|
MappingElement |
setNameInSource(java.lang.String srcName)
|
void |
setNamespaces(Namespace[] spaces)
Declare the namespaces on the element. |
MappingElement |
setNillable(boolean nil)
|
MappingElement |
setNormalizeText(java.lang.String normalize)
|
MappingElement |
setOptional(boolean optional)
|
MappingElement |
setType(java.lang.String type)
|
MappingElement |
setValue(java.lang.String value)
|
Methods inherited from class com.metamatrix.query.mapping.xml.MappingBaseNode |
---|
addAllNode, addChildElement, addChoiceNode, addCriteriaNode, addSequenceNode, addSourceNode, addStagingTable, getCanonicalName, getDocument, getMaxOccurence, getMinOccurence, getParentNode, getRecursionId, getSource, getStagingTables, isDocumentNode, isRootRecursiveNode, removeChildNode, setMaxOccurrs, setMinOccurrs, setSource, setStagingTables |
Methods inherited from class com.metamatrix.query.mapping.xml.MappingNode |
---|
addChild, equals, findNode, getChildren, getChildren, getFullyQualifiedName, getNodeChildren, getNodeProperties, getParent, getPathName, getProperty, hashCode, isExcluded, printMappingNodeTree, setExclude, toString, toStringNodeTree |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MappingElement(java.lang.String name)
public MappingElement(java.lang.String name, java.lang.String nameInSource)
public MappingElement(java.lang.String name, Namespace namespace)
Method Detail |
---|
public void acceptVisitor(MappingVisitor visitor)
acceptVisitor
in class MappingNode
public Namespace getNamespace()
public MappingElement setNameInSource(java.lang.String srcName)
public MappingElement setNillable(boolean nil)
public MappingElement setDefaultValue(java.lang.String value)
public MappingElement setValue(java.lang.String value)
public MappingElement setOptional(boolean optional)
public MappingElement setNormalizeText(java.lang.String normalize)
public MappingElement setType(java.lang.String type)
public MappingElement setAlwaysInclude(boolean include)
public MappingCommentNode addCommentNode(MappingCommentNode elem)
public MappingElement addAttribute(MappingAttribute attr)
public MappingElement addSibilingElement(MappingElement elem)
elem
- public void removeAttribute(MappingAttribute toRemove)
toRemove
- public void setNamespaces(Namespace[] spaces)
public void addNamespace(Namespace space)
public java.util.List getAttributes()
public boolean hasAttributes()
public boolean isRecursive()
public java.lang.String getName()
getName
in class MappingBaseNode
public java.lang.String getNamespacePrefix()
public Namespace[] getNamespaces()
public java.util.Properties getNamespacesAsProperties()
public java.lang.String getNameInSource()
getNameInSource
in class MappingNode
public boolean isNillable()
public java.lang.String getDefaultValue()
public java.lang.String getValue()
public boolean isOptional()
public java.lang.String getNormalizeText()
public java.lang.String getType()
public boolean isAlwaysInclude()
public boolean isTagRoot()
MappingBaseNode
isTagRoot
in class MappingBaseNode
MappingBaseNode.isTagRoot()
public void setElementSymbol(ElementSymbol symbol)
public ElementSymbol getElementSymbol()
public MappingSourceNode getSourceNode()
MappingNode
getSourceNode
in class MappingNode
MappingNode.getSourceNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |