|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
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 | |
---|---|
Object |
clone()
Clones a PropertyChoice Note that binary property choice streams are not cloned, but merely copied. |
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. |
int |
getOrderedPosition()
If multivalued property, the position dictates the order |
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. |
boolean |
isObjectClassReadOnly()
A flag indicating if the ObjectClass is read-only because the repository does not support write operations or isn't configured to allow write access to ObjectClasses. |
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 |
setOrderedPosition(int position)
Set the position dictating the order of the PropertyChoice array on an ObjectClass |
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 |
---|
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 int getOrderedPosition()
Note: If this Value is set on more than one property, this position cannot be different for each Property. It is best to avoid setting the position if this Value is going to be added to multiple properties.
public void setOrderedPosition(int position)
Note: If this PropertyChoice is set on more than one ObjectClass, this position cannot be different for each ObjectClass. It is best to avoid setting the position if this PropertyChoice is going to be added to multiple ObjectClass objects.
position
- The position of this PropertyChoice in the array, if applicablepublic 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
public boolean isObjectClassReadOnly()
public Object clone() throws CloneNotSupportedException
clone
in class ContentEntity
CloneNotSupportedException
- If the clone fails.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |