org.jbind.xml.core.constraint
Interface IEnumerationConstraint

All Superinterfaces:
IConstraint, IHasLocation, ISimpleConstraint
All Known Implementing Classes:
ConstraintType.Enumeration.EnumerationConstraint

public interface IEnumerationConstraint
extends ISimpleConstraint


Method Summary
 void addOption(IAnyTypeData aData, IHasBindingAttributes aHasBindingAttributes)
          Adds an option to the enumeration.
 boolean containsOption(IAnyTypeData aData)
          Checks if the enumeration constraint contains the specified option.
 java.util.Iterator iterOptions()
          Iterates the enumeration options.
 
Methods inherited from interface org.jbind.xml.core.constraint.IConstraint
getConstraintType, globalCheck, isFinal, isRestriction, localCheck
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 

Method Detail

addOption

public void addOption(IAnyTypeData aData,
                      IHasBindingAttributes aHasBindingAttributes)
Adds an option to the enumeration.

Parameters:
aData - (required).

iterOptions

public java.util.Iterator iterOptions()
Iterates the enumeration options.

Returns:
(required). An interator of Map.Entry objects. The key of the map entry is of type IAnyTypeData and the value of type IHasBindingAttributes.

containsOption

public boolean containsOption(IAnyTypeData aData)
Checks if the enumeration constraint contains the specified option.

Returns:
Returns true iff the specified data is contained in the enumeration.