eu.esdihumboldt.hale.io.xsd.reader.internal.constraint
Class UnionEnumeration
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.constraint.type.Enumeration<Object>
eu.esdihumboldt.hale.io.xsd.reader.internal.constraint.UnionEnumeration
- All Implemented Interfaces:
- TypeConstraint
public class UnionEnumeration
- extends Enumeration<Object>
Enumeration constraint for type unions
- Author:
- Simon Templer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnionEnumeration
public UnionEnumeration(Collection<? extends TypeDefinition> unionTypes)
- Create a type union binding constraint
- Parameters:
unionTypes
- the definitions of the types contained in the union
getValues
public Collection<? extends Object> getValues()
- Overrides:
getValues
in class Enumeration<Object>
- Returns:
- the collection of allowed values,
null
there is no
such restriction - See Also:
Enumeration.getValues()
isAllowOthers
public boolean isAllowOthers()
- Overrides:
isAllowOthers
in class Enumeration<Object>
- Returns:
- if other values than those returned by
Enumeration.getValues()
are
allowed for the type, should be ignored if Enumeration.getValues()
returns null
- See Also:
Enumeration.isAllowOthers()
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d