|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attribute<T>
This is the interface for all implementations of attributes which can defined by an entity type.
Method Summary | |
---|---|
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. |
de.espirit.or.schema.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 Attribute.setValidator(de.espirit.or.schema.Validator . |
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(de.espirit.or.schema.Validator<T> validator)
Set the validator of this attribute to validator . |
Method Detail |
---|
String getName()
void setName(String name)
name
.
String getDisplayText()
Class<T> getType()
EntityType
boolean isRequired()
void setRequired(boolean flag)
flag
.
de.espirit.or.schema.Validator<T> getValidator()
void setValidator(de.espirit.or.schema.Validator<T> validator)
validator
.
validator
- boolean isValid(T value)
value
can be assigned to this attribute by using the
assigned validator Attribute.setValidator(de.espirit.or.schema.Validator)
.
boolean isReadOnly()
void setReadOnly(boolean readOnly)
readOnly
.
Default value for this property is false
.
EntityType getOwner()
boolean isKey()
boolean isVisible()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |