eu.esdihumboldt.hale.common.schema.model.constraint.property
Class NillableFlag
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENABLED
public static final NillableFlag ENABLED
- Enabled nillable flag
DISABLED
public static final NillableFlag DISABLED
- Disabled nillable flag
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
get
public static NillableFlag get(boolean isNillable)
- Get the nillable flag
- Parameters:
isNillable
- if the flag shall be enabled
- Returns:
- the flag
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d