|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.schema.model.constraint.type.ElementType
@Immutable public class ElementType
Specifies a Java binding and optionally a TypeDefinition
for a
elements of a collection. This is only relevant for a type if its
Binding
is a collection or array, default element binding is
Object
.
Constructor Summary | |
---|---|
ElementType()
Creates a default element binding constraint with Object binding
and no type definition. |
Method Summary | |
---|---|
static ElementType |
createFromType(TypeDefinition elementType)
Create an element type constraint with the given element type. |
static ElementType |
get(Class<?> binding)
Get the element type constraint with the given Java binding |
Class<?> |
getBinding()
Get the Java binding for collection elements of the type |
TypeDefinition |
getDefinition()
Get the type definition for collection elements of the type |
boolean |
isInheritable()
Determines if the constraint is inheritable, meaning it may be used for a sub-type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementType()
Object
binding
and no type definition.
Constraint
Method Detail |
---|
public static ElementType get(Class<?> binding)
binding
- the type's Java binding
public static ElementType createFromType(TypeDefinition elementType)
elementType
- the element type definition
public Class<?> getBinding()
public TypeDefinition getDefinition()
null
public boolean isInheritable()
TypeConstraint
isInheritable
in interface TypeConstraint
TypeConstraint.isInheritable()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |