public interface IMutableProperty extends IProperty
| Modifier and Type | Method and Description |
|---|---|
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
|
getAttribute, getAttributes, getBooleanValue, getDateValue, getDescription, getDescription, getIntValue, getLongIntValue, getMutable, getPropertyDef, getPropertyName, getStringValue, getType, getValue, getValueAsString, getValues, isMultivaluedvoid setIntValue(int value)
throws ResourceException
value - The new valueResourceExceptionvoid setDateValue(Date value) throws ResourceException
value - The new valueResourceExceptionvoid setDateValueFromLong(long value)
throws ResourceException
value - The new valueResourceExceptionvoid setStringValue(String value) throws ResourceException
value - The new valueResourceExceptionvoid setLongIntValue(long value)
throws ResourceException
value - The new valueResourceExceptionvoid setBooleanValue(boolean value)
throws ResourceException
value - The new valueResourceExceptionvoid 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 | StringResourceException - If the property is not defined as multi-valued
If a instance of a value does not match the property typevoid 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 | StringResourceException - If the property is not defined as multi-valued
If the instance of the value does not match the property typevoid setValue(int index,
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 boundsvoid 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 boundsvoid setAttribute(String name, String value) throws ResourceException
name - Attribute namevalue - Attribute valueResourceExceptionvoid setAttributes(Properties attributes) throws ResourceException
attributes - All attributesResourceExceptionvoid removeAttribute(String name) throws ResourceException
name - Attribute nameResourceException| 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
|
Copyright 2017 SAP AG Complete Copyright Notice