|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A property of a resource object with a mutable interface.
| Method Summary | |
void |
addValue(java.lang.Object value)
Adds a value to the list for a multi-value property |
void |
removeAttribute(java.lang.String name)
Removes a attribute |
void |
removeValue(int index)
Remove a value of a multi-value property |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Set an attribute |
void |
setAttributes(java.util.Properties attributes)
Set the complete collection of attributes |
void |
setBooleanValue(boolean value)
Sets the property value if the type ist PropertyType.BOOLEAN |
void |
setDateValue(java.util.Date value)
Sets the property value if the type ist PropertyType.DATE |
void |
setDateValueFromLong(long value)
Sets the property value if the type ist PropertyType.DATE |
void |
setIntValue(int value)
Sets the property value if the type ist PropertyType.INTEGER |
void |
setLongIntValue(long value)
Sets the property value if the type ist PropertyType.LONG |
void |
setStringValue(java.lang.String value)
Sets the property value if the type ist PropertyType.STRING |
void |
setValue(int index,
java.lang.Object value)
Set a value of a multi-value property |
void |
setValues(java.util.List values)
Sets all values of a multi-value property |
| Methods inherited from interface com.sapportals.wcm.repository.IProperty |
getAttribute, getAttributes, getBooleanValue, getDateValue, getDescription, getDescription, getIntValue, getLongIntValue, getMutable, getPropertyDef, getPropertyName, getStringValue, getType, getValue, getValueAsString, getValues, isMultivalued |
| Method Detail |
public void setIntValue(int value)
throws ResourceException
value - The new valueResourceException -
public void setDateValue(java.util.Date value)
throws ResourceException
value - The new valueResourceException -
public void setDateValueFromLong(long value)
throws ResourceException
value - The new valueResourceException -
public void setStringValue(java.lang.String value)
throws ResourceException
value - The new valueResourceException -
public void setLongIntValue(long value)
throws ResourceException
value - The new valueResourceException -
public void setBooleanValue(boolean value)
throws ResourceException
value - The new valueResourceException -
public void setValues(java.util.List values)
throws ResourceException
values - The new values. The following table shows the instance that
has to be used for each type. PropertyType | instanceof
------------------------- STRING | String BOOLEAN | Boolean INTEGER |
Integer LONG | Long DATE | Date XML | String ResourceException - If the property is not defined as multi-valued
If a instance of a value does not match the property type
public void addValue(java.lang.Object value)
throws ResourceException
value - The value to add. The following table shows the instance that
has to be used for each type. PropertyType | instanceof
------------------------- STRING | String BOOLEAN | Boolean INTEGER |
Integer LONG | Long DATE | Date XML | String ResourceException - If the property is not defined as multi-valued
If the instance of the value does not match the property type
public void setValue(int index,
java.lang.Object value)
throws ResourceException
index - The zero-based indexvalue - The new valueResourceException - If the property is not defined as multi-valued
If the instance of the value does not match the property type If the
index it out of bounds
public void removeValue(int index)
throws ResourceException
index - The zero-based indexResourceException - If the property is not defined as multi-valued
If the index it out of bounds
public void setAttribute(java.lang.String name,
java.lang.String value)
throws ResourceException
name - Attribute namevalue - Attribute valueResourceException -
public void setAttributes(java.util.Properties attributes)
throws ResourceException
attributes - All attributesResourceException -
public void removeAttribute(java.lang.String name)
throws ResourceException
name - Attribute nameResourceException -
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||