|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeDef
This interface represents definition of an attribute
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns description associated with the attribute, if any. |
java.lang.String |
getName()
Gets the name of the attribute |
AttributeDefProperties |
getProperties()
Returns properties associated with the attribute. |
AttributeTypeEnum |
getType()
Gets the data type associated with the Attribute |
boolean |
isDataMandatory()
Indicates if data for this attribute is mandatory. |
boolean |
isMetaDataAttribute()
Indicates if this attribute is metadata type (as opposed to user defined). |
void |
setDescription(java.lang.String desc)
Sets the description of the attribute |
void |
setIsMandatory(boolean mandatory)
Sets whether the attribute is mandatory or not |
void |
setIsMetadataAttribute(boolean isMetaData)
Sets whether the attribute is a metadata attribute |
void |
setName(java.lang.String name)
Sets the name of the attribute |
void |
setProperties(AttributeDefProperties props)
Sets the property of the attribute |
void |
setType(AttributeTypeEnum type)
Sets the type of the attribute |
Method Detail |
---|
java.lang.String getName()
java.lang.String getDescription()
AttributeTypeEnum getType()
AttributeDefProperties getProperties()
boolean isMetaDataAttribute()
true
if the attribute is meta data type, false
otherwise.boolean isDataMandatory()
true
if the attribute is required false
otherwise.void setName(java.lang.String name)
name
- the name of the attributevoid setDescription(java.lang.String desc)
desc
- the description of the attributevoid setType(AttributeTypeEnum type)
type
- the attribute typevoid setProperties(AttributeDefProperties props)
props
- the attribute propertiesvoid setIsMandatory(boolean mandatory)
mandatory
- true if the attribute is mandatory (must have a value); false if notvoid setIsMetadataAttribute(boolean isMetaData)
isMetaData
- true if the attribute is metadata; false if not
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |