Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model.constraint.property
Class NillableFlag

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
      extended by eu.esdihumboldt.hale.common.schema.model.constraint.property.NillableFlag
All Implemented Interfaces:
PropertyConstraint

@Immutable
public class NillableFlag
extends AbstractFlagConstraint
implements PropertyConstraint

Flags if a property is nillable, disabled by default

Author:
Simon Templer

Field Summary
static NillableFlag DISABLED
          Disabled nillable flag
static NillableFlag ENABLED
          Enabled nillable flag
 
Constructor Summary
NillableFlag()
          Creates a default nillable flag, which is disabled.
 
Method Summary
static NillableFlag get(boolean isNillable)
          Get the nillable flag
 
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 NillableFlag ENABLED
Enabled nillable flag


DISABLED

public static final NillableFlag DISABLED
Disabled nillable flag

Constructor Detail

NillableFlag

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

See Also:
Cardinality
Method Detail

get

public static NillableFlag get(boolean isNillable)
Get the nillable flag

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

Humboldt Alignment Editor 2.5.0

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