com.metamatrix.query.mapping.xml
Class MappingAttribute
java.lang.Object
com.metamatrix.query.mapping.xml.MappingNode
com.metamatrix.query.mapping.xml.MappingAttribute
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class MappingAttribute
- extends MappingNode
A Mapping node which denotes a attribuite node.
- See Also:
- Serialized Form
Methods inherited from class com.metamatrix.query.mapping.xml.MappingNode |
addChild, equals, findNode, getChildren, getChildren, getFullyQualifiedName, getName, getNodeChildren, getNodeProperties, getParent, getProperty, hashCode, isExcluded, printMappingNodeTree, setExclude, toString, toStringNodeTree |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MappingAttribute
public MappingAttribute(java.lang.String name)
MappingAttribute
public MappingAttribute(java.lang.String name,
java.lang.String nameInSource)
MappingAttribute
public MappingAttribute(java.lang.String name,
Namespace namespace)
acceptVisitor
public void acceptVisitor(MappingVisitor visitor)
- Specified by:
acceptVisitor
in class MappingNode
getParentNode
public MappingElement getParentNode()
getNamespace
public Namespace getNamespace()
setNameInSource
public void setNameInSource(java.lang.String srcName)
setDefaultValue
public void setDefaultValue(java.lang.String value)
setValue
public void setValue(java.lang.String value)
setOptional
public void setOptional(boolean optional)
setNormalizeText
public void setNormalizeText(java.lang.String normalize)
setAlwaysInclude
public void setAlwaysInclude(boolean include)
getPathName
public java.lang.String getPathName()
- Overrides:
getPathName
in class MappingNode
- See Also:
MappingNode.getPathName()
getCanonicalName
public java.lang.String getCanonicalName()
getNamespacePrefix
public java.lang.String getNamespacePrefix()
- Namespace prefix
- Returns:
getNameInSource
public java.lang.String getNameInSource()
- Overrides:
getNameInSource
in class MappingNode
getDefaultValue
public java.lang.String getDefaultValue()
getValue
public java.lang.String getValue()
isOptional
public boolean isOptional()
getNormalizeText
public java.lang.String getNormalizeText()
isAlwaysInclude
public boolean isAlwaysInclude()
getSource
public java.lang.String getSource()
setElementSymbol
public void setElementSymbol(ElementSymbol symbol)
getElementSymbol
public ElementSymbol getElementSymbol()
getSourceNode
public MappingSourceNode getSourceNode()
- Description copied from class:
MappingNode
- 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.
If not find nearest one looking up the tree.
- Overrides:
getSourceNode
in class MappingNode
- Returns:
- See Also:
MappingNode.getSourceNode()
Copyright © 2009. All Rights Reserved.