|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.content.ContentEntity | +--com.bea.content.PropertyDefinition
PropertyDefinition defines the shape of a Property. It describes the Property type (binary, boolean, string, double, calendar, long), whether it is required, whether it is editable, the default value and restricted values, if applicable.
A PropertyDefinition may contain a PropertyChoice array. This is a list of values that may be selected for a Property's values.
Rules for a PropertyDefinition are as follows.
Field Summary |
Fields inherited from class com.bea.content.ContentEntity |
id |
Constructor Summary | |
PropertyDefinition(ID id,
String name,
String reference,
int type,
boolean isReadOnly,
boolean isRestricted,
boolean isMandatory,
boolean isMultiValued,
boolean isPrimary,
String description)
Constructs PropertyDefinition without PropertyChoices. |
|
PropertyDefinition(PropertyChoice[] propertyChoices,
ID id,
String name,
String reference,
int type,
boolean isReadOnly,
boolean isRestricted,
boolean isMandatory,
boolean isMultiValued,
boolean isPrimary,
String description)
Constructs the PropertyDefinition with all attributes. |
Method Summary | |
String |
getDescription()
Gets the description. |
String |
getName()
Returns the name of this PropertyDefinition. |
PropertyChoice[] |
getPropertyChoices()
Returns the array of PropertyChoices. |
String |
getReference()
Returns a means by which all Properties for this PropertyDefinition may be referenced. |
int |
getType()
Gets the defined data type. |
boolean |
isMandatory()
Returns true if a value for the Property is required. |
void |
isMandatory(boolean isMandatory)
Set to true if a value for the Property is required, or false otherwise. |
boolean |
isMultiValued()
Returns true if the Property can have multiple values. |
void |
isMultiValued(boolean isMultiValued)
Set to true if the Property can have multiple values, false otherwise. |
boolean |
isPrimary()
Returns true if this PropertyDefinition represents the primary PropertyDefinition for its ObjectClass. |
void |
isPrimary(boolean isPrimary)
Set to true if this PropertyDefinition represents the primary PropertyDefinition for its ObjectClass. |
boolean |
isReadOnly()
Returns true if a value for the Property can be edited. |
void |
isReadOnly(boolean isReadOnly)
Set to true if a value for the Property can be edited, or false otherwise. |
boolean |
isRestricted()
Returns true if a value for the Property is restricted to the available choices. |
void |
isRestricted(boolean isRestricted)
Set to true if a value for the Property is restricted to the available choices, or false otherwise. |
void |
setDescription(String description)
Sets the description. |
void |
setName(String name)
Sets the name of this PropertyDefinition. |
void |
setPropertyChoices(PropertyChoice[] propertyChoices)
Sets the array of PropertyChoices. |
void |
setReference(String reference)
Sets a means by which all Properties for this PropertyDefinition may be referenced. |
void |
setType(int type)
Sets the defined data type. |
String |
toString()
Returns the PropertyDefinition attributs as a String. |
Methods inherited from class com.bea.content.ContentEntity |
getId, setId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PropertyDefinition(PropertyChoice[] propertyChoices, ID id, String name, String reference, int type, boolean isReadOnly, boolean isRestricted, boolean isMandatory, boolean isMultiValued, boolean isPrimary, String description)
propertyChoices
- - available value choices for
a Property that is defined by this PropertyDefinition.id
- - the unique id for this PropertyDefinitionname
- - the name of this PropertyDefinition that
is unique relative to its ObjectClass.reference
- - an external reference for all
Properties defined by this PropertyDefinition.type
- - the type of this PropertyDefinition.isReadOnly
- - true if a Property defined by
this PropertyDefinition is intended to not be writable,
false otherwise.isRestricted
- - true if a Property defined by
this PropertyDefinition may only contain value(s)
defined in this PropertyDefinitions PropertyChoice array,
false otherwiseisMandatory
- - true if a Property defined by
this PropertyDefinition must contain a non-null value
and in the case of a String must not be empty, false otherwiseisMultiValued
- - true if a Property defined by
this PropertyDefinition may contain multiple values,
false otherwise.isPrimary
- - true if the PropertyDefinition is the
Primary PropertyDefinition for the ObjectClass.description
- - a description of this PropertyDefinition.public PropertyDefinition(ID id, String name, String reference, int type, boolean isReadOnly, boolean isRestricted, boolean isMandatory, boolean isMultiValued, boolean isPrimary, String description)
id
- - the unique id for this PropertyDefinitionname
- - the name of this PropertyDefinition that
is unique relative to its ObjectClass.reference
- - an external reference for all
Properties defined by this PropertyDefinition.type
- - the type of this PropertyDefinition.isReadOnly
- - true if a Property defined by
this PropertyDefinition is intended to not be writable,
false otherwise.isRestricted
- - true if a Property defined by
this PropertyDefinition may only contain value(s)
defined in this PropertyDefinitions PropertyChoice array,
false otherwiseisMandatory
- - true if a Property defined by
this PropertyDefinition must contain a non-null value
and in the case of a String must not be empty, false otherwise.isMultiValued
- - true if a Property defined by
this PropertyDefinition may contain multiple values,
false otherwise.isPrimary
- - true if the PropertyDefinition is the
Primary PropertyDefinition for the ObjectClass.description
- - a description of this PropertyDefinition.Method Detail |
public String getDescription()
public void setDescription(String description)
public PropertyChoice[] getPropertyChoices()
public void setPropertyChoices(PropertyChoice[] propertyChoices)
public String getName()
public void setName(String name)
public String getReference()
public void setReference(String reference)
public int getType()
public void setType(int type)
public boolean isReadOnly()
public void isReadOnly(boolean isReadOnly)
public boolean isRestricted()
public void isRestricted(boolean isRestricted)
public boolean isMultiValued()
public void isMultiValued(boolean isMultiValued)
public boolean isMandatory()
public void isMandatory(boolean isMandatory)
public boolean isPrimary()
public void isPrimary(boolean isPrimary)
public String toString()
toString
in class ContentEntity
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |