Humboldt Alignment Editor 2.5.0

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

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
      extended by eu.esdihumboldt.hale.common.schema.model.constraint.type.MappingRelevantFlag
All Implemented Interfaces:
TypeConstraint

@Immutable
public class MappingRelevantFlag
extends AbstractFlagConstraint
implements TypeConstraint

Flags if a type is mapping relevant, i.e. that it is a valid source or target for a retype. Disabled by default.

Author:
Simon Templer

Field Summary
static MappingRelevantFlag DISABLED
          Disabled mappable flag
static MappingRelevantFlag ENABLED
          Enabled mappable flag
 
Constructor Summary
MappingRelevantFlag()
          Creates a default mapping relevant flag, which is disabled.
 
Method Summary
static MappingRelevantFlag get(boolean isMappable)
          Get the mappable flag
 boolean isInheritable()
          Determines if the constraint is inheritable, meaning it may be used for a sub-type.
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLED

public static final MappingRelevantFlag ENABLED
Enabled mappable flag


DISABLED

public static final MappingRelevantFlag DISABLED
Disabled mappable flag

Constructor Detail

MappingRelevantFlag

public MappingRelevantFlag()
Creates a default mapping relevant flag, which is disabled. If possible, instead of creating an instance, use get(boolean), ENABLED or DISABLED.

See Also:
Constraint
Method Detail

get

public static MappingRelevantFlag get(boolean isMappable)
Get the mappable flag

Parameters:
isMappable - if the flag shall be enabled
Returns:
the flag

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