Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.xsd.constraint
Class XmlIdUnique

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

public class XmlIdUnique
extends Unique

Unique constraint for XS:ID types. Needed because while loading the property type's supertypes may not be resolved yet.

Author:
Kai Schwierczek

Constructor Summary
XmlIdUnique(PropertyDefinition property)
          Default constructor.
 
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

XmlIdUnique

public XmlIdUnique(PropertyDefinition property)
Default constructor.

Parameters:
property - the property definition
Method Detail

isEnabled

public boolean isEnabled()
Description copied from class: Unique
Returns whether the unique constraint is enabled, the identifier is not null.

Overrides:
isEnabled in class Unique
Returns:
whether the unique constraint is enabled
See Also:
Unique.isEnabled()

getIdentifier

public String getIdentifier()
Description copied from class: Unique
Returns the unique identifer.

Overrides:
getIdentifier in class Unique
Returns:
the unique identifer
See Also:
Unique.getIdentifier()

Humboldt Alignment Editor 2.5.0

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