Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model.constraint
Class DisplayName

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.DisplayName
All Implemented Interfaces:
GroupPropertyConstraint, PropertyConstraint, TypeConstraint
Direct Known Subclasses:
ElementName

@Immutable
public class DisplayName
extends Object
implements GroupPropertyConstraint, PropertyConstraint, TypeConstraint

Constraint that can provide a custom display name. By default has no custom name.

Author:
Simon Templer

Constructor Summary
DisplayName()
          Create a default constraint that has no custom name.
DisplayName(String customName)
          Create a custom display name constraint
 
Method Summary
 String getCustomName()
          Get the custom display name.
 boolean isInheritable()
          Determines if the constraint is inheritable, meaning it may be used for a sub-type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayName

public DisplayName()
Create a default constraint that has no custom name.


DisplayName

public DisplayName(String customName)
Create a custom display name constraint

Parameters:
customName - the custom display name
Method Detail

getCustomName

public String getCustomName()
Get the custom display name.

Returns:
the customName the custom display name or null if there is no custom name

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