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, isMultivalued
void setIntValue(int value) throws ResourceException
value
- The new valueResourceException
void setDateValue(Date value) throws ResourceException
value
- The new valueResourceException
void setDateValueFromLong(long value) throws ResourceException
value
- The new valueResourceException
void setStringValue(String value) throws ResourceException
value
- The new valueResourceException
void setLongIntValue(long value) throws ResourceException
value
- The new valueResourceException
void setBooleanValue(boolean value) throws ResourceException
value
- The new valueResourceException
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 | 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 valueResourceException
void setAttributes(Properties attributes) throws ResourceException
attributes
- All attributesResourceException
void 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 2018 SAP AG Complete Copyright Notice