|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMutableProperty
A property of a resource object with a mutable interface.
| Method Summary | |
|---|---|
void |
addValue(Object value)
Adds a value to the list for a multi-value property |
void |
removeAttribute(String name)
Removes a attribute |
void |
removeValue(int index)
Remove a value of a multi-value property |
void |
setAttribute(String name,
String value)
Set an attribute |
void |
setAttributes(Properties attributes)
Set the complete collection of attributes |
void |
setBooleanValue(boolean value)
Sets the property value if the type ist PropertyType.BOOLEAN |
void |
setDateValue(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(String value)
Sets the property value if the type ist PropertyType.STRING |
void |
setValue(int index,
Object value)
Set a value of a multi-value property |
void |
setValues(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 |
|---|
void setIntValue(int value)
throws ResourceException
value - The new value
ResourceException
void setDateValue(Date value)
throws ResourceException
value - The new value
ResourceException
void setDateValueFromLong(long value)
throws ResourceException
value - The new value
ResourceException
void setStringValue(String value)
throws ResourceException
value - The new value
ResourceException
void setLongIntValue(long value)
throws ResourceException
value - The new value
ResourceException
void setBooleanValue(boolean value)
throws ResourceException
value - The new value
ResourceException
void setValues(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
void addValue(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
void setValue(int index,
Object value)
throws ResourceException
index - The zero-based indexvalue - The new value
ResourceException - 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
void removeValue(int index)
throws ResourceException
index - The zero-based index
ResourceException - If the property is not defined as multi-valued
If the index it out of bounds
void setAttribute(String name,
String value)
throws ResourceException
name - Attribute namevalue - Attribute value
ResourceException
void setAttributes(Properties attributes)
throws ResourceException
attributes - All attributes
ResourceException
void removeAttribute(String name)
throws ResourceException
name - Attribute name
ResourceException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||