public class MutableProperty extends Property implements IMutableProperty, Serializable
m_attributes, m_dateValue, m_res, m_value, m_value_object, m_valuesORDER_TYPE_MANUAL, ORDER_TYPE_NONE| Modifier | Constructor and Description |
|---|---|
|
MutableProperty(IPropertyName name,
Boolean value)
Construct a new property of type BOOLEAN.
|
|
MutableProperty(IPropertyName name,
Boolean value,
Properties attributes)
Construct a new property of type BOOLEAN.
|
|
MutableProperty(IPropertyName name,
Date value)
Construct a new property of type DATE.
|
|
MutableProperty(IPropertyName name,
Date value,
Properties attributes)
Construct a new property of type DATE.
|
|
MutableProperty(IPropertyName name,
Integer value)
Construct a new property of type INTEGER.
|
|
MutableProperty(IPropertyName name,
Integer value,
Properties attributes)
Construct a new property of type INTEGER.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
Boolean value)
Construct a new property of type BOOLEAN.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
Boolean value,
Properties attributes)
Construct a new property of type BOOLEAN.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
Date value)
Construct a new property of type DATE.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
Date value,
Properties attributes)
Construct a new property of type DATE.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
Integer value)
Construct a new property of type INTEGER.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
Integer value,
Properties attributes)
Construct a new property of type INTEGER.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
List values)
Construct a new multi-valued property.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
List values,
Properties attributes)
Construct a new multi-valued property.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
Long value)
Construct a new property of type LONG.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
Long value,
Properties attributes)
Construct a new property of type LONG.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
Object value)
Construct a new property.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
Object value,
Properties attributes)
Construct a new property.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
String value)
Construct a new property of type STRING.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
String value,
Properties attributes)
Construct a new property of type STRING.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
XMLMarkup value)
Construct a new property of type XML.
|
|
MutableProperty(IPropertyName name,
IPropertyDef def,
XMLMarkup value,
Properties attributes)
Construct a new property of type XML.
|
|
MutableProperty(IPropertyName name,
Long value)
Construct a new property of type LONG.
|
|
MutableProperty(IPropertyName name,
Long value,
Properties attributes)
Construct a new property of type LONG.
|
|
MutableProperty(IPropertyName name,
Object value)
Construct a new property.
|
|
MutableProperty(IPropertyName name,
Object value,
Properties attributes)
Construct a new property.
|
|
MutableProperty(IPropertyName name,
PropertyType type,
List values)
Construct a new multi-valued property.
|
|
MutableProperty(IPropertyName name,
PropertyType type,
List values,
Properties attributes)
Construct a new multi-valued property.
|
|
MutableProperty(IPropertyName name,
String value)
Construct a new property of type STRING.
|
|
MutableProperty(IPropertyName name,
String value,
Properties attributes)
Construct a new property of type STRING.
|
|
MutableProperty(IPropertyName name,
XMLMarkup value)
Construct a new property of type XML.
|
|
MutableProperty(IPropertyName name,
XMLMarkup value,
Properties attributes)
Construct a new property of type XML.
|
protected |
MutableProperty(Property p)
Construct a new mutable property from a read-only property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Object value)
Adds a value to the list for a multi-value property
|
IMutableProperty |
getMutable()
Returns a copy of this propertry that can be modified
|
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
|
createContentLanguageProp, createContentLengthProp, createContentTypeProp, createCreatedByProp, createCreationDateProp, createDescriptionProp, createDisplaynameProp, createETagProp, createHiddenProp, createLastModifiedByProp, createLastModifiedProp, createPropertyFromStringValue, createReadOnlyProp, createResourceTypeProp, equals, getAttribute, getAttributes, getBooleanValue, getDateValue, getDateValueRaw, getDescription, getDescription, getIntValue, getLongIntValue, getPropertyDef, getPropertyName, getStringValue, getType, getValue, getValueAsString, getValues, hashCode, isMultivalued, isSystemProperty, toString, validateTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttribute, getAttributes, getBooleanValue, getDateValue, getDescription, getDescription, getIntValue, getLongIntValue, getPropertyDef, getPropertyName, getStringValue, getType, getValue, getValueAsString, getValues, isMultivaluedprotected MutableProperty(Property p)
p - TBD: Description of the incoming method parameterpublic MutableProperty(IPropertyName name, String value) throws ResourceException
name - The property namevalue - The property string valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, Date value) throws ResourceException
name - The property namevalue - The property date valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, Boolean value) throws ResourceException
name - The property namevalue - The property booelan valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, Integer value) throws ResourceException
name - The property namevalue - The property integer valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, Long value) throws ResourceException
name - The property namevalue - The property long valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, XMLMarkup value) throws ResourceException
name - The property namevalue - The property xml valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, PropertyType type, List values) throws ResourceException
name - The property nametype - The property data typevalues - A list of values. The list must contain suitable object
instances (String, Date, Integer, Long, Boolean, XMLMarkup) for the
specified property type.ResourceException - If the instance of the value does not match
the property typepublic MutableProperty(IPropertyName name, Object value) throws ResourceException
name - The property namevalue - The value objectResourceException - If the instance of the value parameter is not
allowedpublic MutableProperty(IPropertyName name, IPropertyDef def, String value) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, Date value) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, Boolean value) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, Integer value) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, Long value) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, XMLMarkup value) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, Object value) throws ResourceException
name - The property namedef - The property definitionvalue - The value objectResourceException - If the instance of the value parameter is not
allowed or does not matach the typepublic MutableProperty(IPropertyName name, IPropertyDef def, List values) throws ResourceException
name - The property namedef - The property definitionvalues - A list of values. The list must contain suitable object
instances (String, Date, Integer, Long, Boolean, XMLMarkup) for the
specified property type.ResourceException - If the instance of the value does not match
the property typepublic MutableProperty(IPropertyName name, String value, Properties attributes) throws ResourceException
name - The property namevalue - The property string valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, Date value, Properties attributes) throws ResourceException
name - The property namevalue - The property date valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, Boolean value, Properties attributes) throws ResourceException
name - The property namevalue - The property booelan valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, Integer value, Properties attributes) throws ResourceException
name - The property namevalue - The property integer valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, Long value, Properties attributes) throws ResourceException
name - The property namevalue - The property long valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, XMLMarkup value, Properties attributes) throws ResourceException
name - The property namevalue - The property xml valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, Object value, Properties attributes) throws ResourceException
name - The property namevalue - The value objectattributes - TBD: Description of the incoming method parameterResourceException - If the instance of the value parameter is not
allowedpublic MutableProperty(IPropertyName name, PropertyType type, List values, Properties attributes) throws ResourceException
name - The property nametype - The property data typevalues - A list of values. The list must contain suitable object
instances (String, Date, Integer, Long, Boolean, XMLMarkup) for the
specified property type.attributes - TBD: Description of the incoming method parameterResourceException - If the instance of the value does not match
the property typepublic MutableProperty(IPropertyName name, IPropertyDef def, String value, Properties attributes) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, Date value, Properties attributes) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, Boolean value, Properties attributes) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, Integer value, Properties attributes) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, Long value, Properties attributes) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, XMLMarkup value, Properties attributes) throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situationpublic MutableProperty(IPropertyName name, IPropertyDef def, Object value, Properties attributes) throws ResourceException
name - The property namedef - The property definitionvalue - The value objectattributes - TBD: Description of the incoming method parameterResourceException - If the instance of the value parameter is not
allowed or does not matach the typepublic MutableProperty(IPropertyName name, IPropertyDef def, List values, Properties attributes) throws ResourceException
name - The property namedef - The property definitionvalues - A list of values. The list must contain suitable object
instances (String, Date, Integer, Long, Boolean, XMLMarkup) for the
specified property type.attributes - TBD: Description of the incoming method parameterResourceException - If the instance of the value does not match
the property typepublic void setIntValue(int value)
throws ResourceException
IMutablePropertysetIntValue in interface IMutablePropertyvalue - The new valueResourceExceptionpublic void setDateValue(Date value) throws ResourceException
IMutablePropertysetDateValue in interface IMutablePropertyvalue - The new valueResourceExceptionpublic void setDateValueFromLong(long value)
throws ResourceException
IMutablePropertysetDateValueFromLong in interface IMutablePropertyvalue - The new valueResourceExceptionpublic void setStringValue(String value) throws ResourceException
IMutablePropertysetStringValue in interface IMutablePropertyvalue - The new valueResourceExceptionpublic void setLongIntValue(long value)
throws ResourceException
IMutablePropertysetLongIntValue in interface IMutablePropertyvalue - The new valueResourceExceptionpublic void setBooleanValue(boolean value)
throws ResourceException
IMutablePropertysetBooleanValue in interface IMutablePropertyvalue - The new valueResourceExceptionpublic void setValues(List values) throws ResourceException
IMutablePropertysetValues in interface IMutablePropertyvalues - 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 typepublic void addValue(Object value) throws ResourceException
IMutablePropertyaddValue in interface IMutablePropertyvalue - 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 typepublic void setValue(int index,
Object value)
throws ResourceException
IMutablePropertysetValue in interface IMutablePropertyindex - 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 boundspublic void removeValue(int index)
throws ResourceException
IMutablePropertyremoveValue in interface IMutablePropertyindex - The zero-based indexResourceException - If the property is not defined as multi-valued
If the index it out of boundspublic IMutableProperty getMutable()
IPropertygetMutable in interface IPropertygetMutable in class Propertypublic void setAttribute(String name, String value) throws ResourceException
IMutablePropertysetAttribute in interface IMutablePropertyname - Attribute namevalue - Attribute valueResourceExceptionpublic void setAttributes(Properties attributes) throws ResourceException
IMutablePropertysetAttributes in interface IMutablePropertyattributes - All attributesResourceExceptionpublic void removeAttribute(String name) throws ResourceException
IMutablePropertyremoveAttribute in interface IMutablePropertyname - 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