com.metamatrix.query.mapping.xml
Class MappingAttribute

java.lang.Object
  extended by com.metamatrix.query.mapping.xml.MappingNode
      extended by 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

Constructor Summary
MappingAttribute(java.lang.String name)
           
MappingAttribute(java.lang.String name, Namespace namespace)
           
MappingAttribute(java.lang.String name, java.lang.String nameInSource)
           
 
Method Summary
 void acceptVisitor(MappingVisitor visitor)
           
 java.lang.String getCanonicalName()
           
 java.lang.String getDefaultValue()
           
 ElementSymbol getElementSymbol()
           
 java.lang.String getNameInSource()
           
 Namespace getNamespace()
           
 java.lang.String getNamespacePrefix()
          Namespace prefix
 java.lang.String getNormalizeText()
           
 MappingElement getParentNode()
           
 java.lang.String getPathName()
           
 java.lang.String getSource()
           
 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 getValue()
           
 boolean isAlwaysInclude()
           
 boolean isOptional()
           
 void setAlwaysInclude(boolean include)
           
 void setDefaultValue(java.lang.String value)
           
 void setElementSymbol(ElementSymbol symbol)
           
 void setNameInSource(java.lang.String srcName)
           
 void setNormalizeText(java.lang.String normalize)
           
 void setOptional(boolean optional)
           
 void setValue(java.lang.String value)
           
 
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
 

Constructor Detail

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)
Method Detail

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.