Humboldt Alignment Editor 2.5.0

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

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.property.Unique
All Implemented Interfaces:
PropertyConstraint
Direct Known Subclasses:
XmlIdUnique

public class Unique
extends Object
implements PropertyConstraint

Specifies that a property should be unique.

Author:
Kai Schwierczek

Constructor Summary
Unique()
          Creates a default unique object that is disabled.
Unique(String identifier)
          Creates a unique flag with the given identifier.
 
Method Summary
 String getIdentifier()
          Returns the unique identifer.
 boolean isEnabled()
          Returns whether the unique constraint is enabled, the identifier is not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unique

public Unique()
Creates a default unique object that is disabled.


Unique

public Unique(String identifier)
Creates a unique flag with the given identifier.

Parameters:
identifier - the unique identifier. Unique constraints with the same identifier share a unique context. null means not unique at all.
Method Detail

isEnabled

public boolean isEnabled()
Returns whether the unique constraint is enabled, the identifier is not null.

Returns:
whether the unique constraint is enabled

getIdentifier

public String getIdentifier()
Returns the unique identifer.

Returns:
the unique identifer

Humboldt Alignment Editor 2.5.0

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