Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.xsd.reader.internal.constraint
Class UnionEnumeration

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.type.Enumeration<Object>
      extended by 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

Constructor Summary
UnionEnumeration(Collection<? extends TypeDefinition> unionTypes)
          Create a type union binding constraint
 
Method Summary
 Collection<? extends Object> getValues()
           
 boolean isAllowOthers()
           
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.constraint.type.Enumeration
isInheritable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnionEnumeration

public UnionEnumeration(Collection<? extends TypeDefinition> unionTypes)
Create a type union binding constraint

Parameters:
unionTypes - the definitions of the types contained in the union
Method Detail

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()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d