public interface Attribute<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getDisplayText()
Return the display text of this attribute.
|
String |
getName()
Return the name of this attribute.
|
EntityType |
getOwner()
Return the entity type which defines this attribute.
|
Class<T> |
getType()
Return the type of this attribute.
|
Validator<T> |
getValidator()
Return the validator of this attribute.
|
boolean |
isKey()
Return true if this attribute is a key attribute else false.
|
boolean |
isReadOnly()
A read only attribute can not be set by the client.
|
boolean |
isRequired()
Return true if this attribute is a required attribute.
|
boolean |
isValid(T value)
Check if
value can be assigned to this attribute by using the
assigned validator setValidator(de.espirit.or.schema.Validator<T>) . |
boolean |
isVisible()
Return true if this attribute is visible in the schema editor.
|
void |
setName(String name)
Set the name of this attribute to
name . |
void |
setReadOnly(boolean readOnly)
Set the read only property of this attribute to
readOnly . |
void |
setRequired(boolean flag)
Set the required property of this attribute to
flag . |
void |
setValidator(Validator<T> validator)
Set the validator of this attribute to
validator . |
String getName()
void setName(String name)
name
.String getDisplayText()
Class<T> getType()
EntityType
boolean isRequired()
void setRequired(boolean flag)
flag
.void setValidator(Validator<T> validator)
validator
.validator
- boolean isValid(@Nullable T value)
value
can be assigned to this attribute by using the
assigned validator setValidator(de.espirit.or.schema.Validator<T>)
.boolean isReadOnly()
void setReadOnly(boolean readOnly)
readOnly
.
Default value for this property is false
.EntityType getOwner()
boolean isKey()
boolean isVisible()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500