com.metamatrix.query.mapping.xml
Class MappingCriteriaNode

java.lang.Object
  extended by com.metamatrix.query.mapping.xml.MappingNode
      extended by com.metamatrix.query.mapping.xml.MappingBaseNode
          extended by com.metamatrix.query.mapping.xml.MappingCriteriaNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class MappingCriteriaNode
extends MappingBaseNode

Represents a Criteria Node under a Choice Node, which defines the criteria on the selection of child elements.

See Also:
Serialized Form

Constructor Summary
MappingCriteriaNode()
           
MappingCriteriaNode(java.lang.String criteria, boolean defalt)
           
 
Method Summary
 void acceptVisitor(MappingVisitor visitor)
           
 java.lang.String getCriteria()
           
 Criteria getCriteriaNode()
           
 java.util.List getGroupsInCriteria()
          Deprecated. - may not be needed
 boolean isDefault()
           
 boolean isExcluded()
           
 MappingCriteriaNode setAsDefault(boolean defalt)
           
 MappingCriteriaNode setCriteria(java.lang.String criteria)
           
 void setCriteriaNode(Criteria node)
          This is parsed and resolved criteria node based on the criteria string.
 void setGroupsInCriteria(java.util.List criteriaGroups)
          Groups that are referenced inthe criteria string.
 
Methods inherited from class com.metamatrix.query.mapping.xml.MappingBaseNode
addAllNode, addChildElement, addChoiceNode, addCriteriaNode, addSequenceNode, addSourceNode, addStagingTable, getCanonicalName, getDocument, getMaxOccurence, getMinOccurence, getName, getParentNode, getRecursionId, getSource, getStagingTables, isDocumentNode, isRootRecursiveNode, isTagRoot, removeChildNode, setMaxOccurrs, setMinOccurrs, setSource, setStagingTables
 
Methods inherited from class com.metamatrix.query.mapping.xml.MappingNode
addChild, equals, findNode, getChildren, getChildren, getFullyQualifiedName, getNameInSource, getNodeChildren, getNodeProperties, getParent, getPathName, getProperty, getSourceNode, hashCode, printMappingNodeTree, setExclude, toString, toStringNodeTree
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappingCriteriaNode

public MappingCriteriaNode(java.lang.String criteria,
                           boolean defalt)

MappingCriteriaNode

public MappingCriteriaNode()
Method Detail

acceptVisitor

public void acceptVisitor(MappingVisitor visitor)
Specified by:
acceptVisitor in class MappingNode

setCriteria

public MappingCriteriaNode setCriteria(java.lang.String criteria)

setAsDefault

public MappingCriteriaNode setAsDefault(boolean defalt)

isDefault

public boolean isDefault()

getCriteria

public java.lang.String getCriteria()

setCriteriaNode

public void setCriteriaNode(Criteria node)
This is parsed and resolved criteria node based on the criteria string. This is set by ValidateMappedCriteriaVisitor class during pre planning.

Parameters:
node -

getCriteriaNode

public Criteria getCriteriaNode()

setGroupsInCriteria

public void setGroupsInCriteria(java.util.List criteriaGroups)
Groups that are referenced inthe criteria string. This is set by ValidateMappedCriteriaVisitor class during the preplan.

Parameters:
criteriaGroups -

getGroupsInCriteria

public java.util.List getGroupsInCriteria()
Deprecated. - may not be needed

Returns:

isExcluded

public boolean isExcluded()
Overrides:
isExcluded in class MappingNode
See Also:
MappingNode.isExcluded()


Copyright © 2009. All Rights Reserved.