@Immutable public class DisplayName extends Object implements GroupPropertyConstraint, PropertyConstraint, TypeConstraint
Constructor and Description |
---|
DisplayName()
Create a default constraint that has no custom name.
|
DisplayName(String customName)
Create a custom display name constraint
|
Modifier and Type | Method and Description |
---|---|
String |
getCustomName()
Get the custom display name.
|
boolean |
isInheritable()
Determines if the constraint is inheritable, meaning it may be used for a
sub-type.
|
public DisplayName()
public DisplayName(String customName)
customName
- the custom display namepublic String getCustomName()
null
if
there is no custom namepublic boolean isInheritable()
TypeConstraint
isInheritable
in interface TypeConstraint
TypeConstraint.isInheritable()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a