Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model.constraint.type
Class Binding

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.type.Binding
All Implemented Interfaces:
TypeConstraint
Direct Known Subclasses:
UnionBinding

@Immutable
public class Binding
extends Object
implements TypeConstraint

Specifies a Java binding for a type value, default binding is Object.

The binding is usually only relevant when the HasValueFlag is enabled for a type.

Author:
Simon Templer
See Also:
HasValueFlag

Constructor Summary
Binding()
          Creates a default binding constraint with Object binding.
 
Method Summary
static Binding get(Class<?> binding)
          Get the binding constraint with the given Java binding
 Class<?> getBinding()
          Get the Java binding 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

Binding

public Binding()
Creates a default binding constraint with Object binding.

See Also:
Constraint
Method Detail

get

public static Binding get(Class<?> binding)
Get the binding constraint with the given Java binding

Parameters:
binding - the type's Java binding
Returns:
the binding constraint (which is a singleton)

getBinding

public Class<?> getBinding()
Get the Java binding of the type

Returns:
the binding

isInheritable

public boolean isInheritable()
Description copied from interface: TypeConstraint
Determines if the constraint is inheritable, meaning it may be used for a sub-type. A constraint may only be inherited if it is not overriden in the sub-type.

Specified by:
isInheritable in interface TypeConstraint
Returns:
if the constraint is inheritable
See Also:
TypeConstraint.isInheritable()

Humboldt Alignment Editor 2.5.0

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