|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
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.PropertyChoice
public class PropertyChoice
PropertyChoice defines a set of choices for a PropertyDefinition, and thus any Property instances based on it.
A choice can be a default, which means if the creator of a Property does not choose different values, it will be set as a Property value. By default, isDefault is false.
If the PropertyChoice value is defined as null, it allows for an empty choice. For example, a Property that has a String type could have 3 PropertyChoices - "blue", "red" and null.
Field Summary |
---|
Fields inherited from class com.bea.content.ContentEntity |
---|
id |
Constructor Summary | |
---|---|
PropertyChoice()
Empty value constructor for a null PropertyChoice. |
|
PropertyChoice(ID id,
BinaryValue binaryValue)
BinaryValue constructor with id. |
|
PropertyChoice(ID id,
BinaryValue binaryValue,
Boolean booleanValue,
Calendar calendarValue,
Double doubleValue,
boolean isDefault,
Long longValue,
String stringValue)
Constructor with all values. |
|
PropertyChoice(ID id,
Boolean booleanValue)
Boolean constructor with id. |
|
PropertyChoice(ID id,
Calendar calendarValue)
Calendar constructor. |
|
PropertyChoice(ID id,
Double doubleValue)
Double constructor. |
|
PropertyChoice(ID id,
Long longValue)
Long constructor. |
|
PropertyChoice(ID id,
String stringValue)
String constructor. |
Method Summary | |
---|---|
int |
compareTo(Object obj)
Compares this PropertyChoices to obj. |
BinaryValue |
getBinaryValue()
Gets the BinaryValue. |
Boolean |
getBooleanValue()
The Boolean choice can be true, false, or null. |
Calendar |
getCalendarValue()
The Calendar choice can be a Calendar instance, or null. |
Double |
getDoubleValue()
The Double choice can be a Double instance, or null. |
Long |
getLongValue()
The Long choice can be a Long instance, or null. |
String |
getStringValue()
The String choice can be a String instance, or null. |
Object |
getValue()
Gets the Value as an Object. |
Object |
getValueByType(int type)
Return the correct value based on the type. |
boolean |
isDefault()
Returns true if this PropertyChoice is a default. |
void |
isDefault(boolean isDefault)
Sets if this PropertyChoice is a default. |
void |
setBinaryValue(BinaryValue binaryValue)
Sets the BinaryValue. |
void |
setBooleanValue(Boolean booleanValue)
Sets the Boolean value to true, false or null. |
void |
setCalendarValue(Calendar calendarValue)
Sets the Calendar value. |
void |
setDefault(boolean isDefault)
Sets if this PropertyChoice is a Default. |
void |
setDoubleValue(Double doubleValue)
Sets the Double value. |
void |
setLongValue(Long longValue)
Sets the Long value. |
void |
setStringValue(String stringValue)
Sets the String value. |
String |
toString()
Returns the PropertyChoice attributes 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 PropertyChoice()
public PropertyChoice(ID id, BinaryValue binaryValue, Boolean booleanValue, Calendar calendarValue, Double doubleValue, boolean isDefault, Long longValue, String stringValue)
public PropertyChoice(ID id, BinaryValue binaryValue)
public PropertyChoice(ID id, Boolean booleanValue)
public PropertyChoice(ID id, Calendar calendarValue)
public PropertyChoice(ID id, Double doubleValue)
public PropertyChoice(ID id, Long longValue)
public PropertyChoice(ID id, String stringValue)
Method Detail |
---|
public void setDefault(boolean isDefault)
public BinaryValue getBinaryValue()
public void setBinaryValue(BinaryValue binaryValue)
public Boolean getBooleanValue()
public void setBooleanValue(Boolean booleanValue)
public Calendar getCalendarValue()
public void setCalendarValue(Calendar calendarValue)
public Double getDoubleValue()
public void setDoubleValue(Double doubleValue)
public Long getLongValue()
public void setLongValue(Long longValue)
public String getStringValue()
public void setStringValue(String stringValue)
public Object getValueByType(int type)
public Object getValue()
public void isDefault(boolean isDefault)
public boolean isDefault()
public int compareTo(Object obj)
public String toString()
toString
in class ContentEntity
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |