org.jbind.xml.core.constraint
Interface IEnumerationConstraint
- All Superinterfaces:
- IConstraint, IHasLocation, ISimpleConstraint
- All Known Implementing Classes:
- ConstraintType.Enumeration.EnumerationConstraint
- public interface IEnumerationConstraint
- extends ISimpleConstraint
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.