|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.WcmObject
com.sapportals.wcm.repository.Property
com.sapportals.wcm.repository.MutableProperty
public class MutableProperty
A property of a resource object that can be modified
| Field Summary |
|---|
| Fields inherited from class com.sapportals.wcm.repository.Property |
|---|
m_attributes, m_dateValue, m_res, m_value, m_value_object, m_values |
| Fields inherited from class com.sapportals.wcm.WcmObject |
|---|
ORDER_TYPE_MANUAL, ORDER_TYPE_NONE |
| Constructor Summary | |
|---|---|
|
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. |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sapportals.wcm.repository.IProperty |
|---|
getAttribute, getAttributes, getBooleanValue, getDateValue, getDescription, getDescription, getIntValue, getLongIntValue, getPropertyDef, getPropertyName, getStringValue, getType, getValue, getValueAsString, getValues, isMultivalued |
| Constructor Detail |
|---|
protected MutableProperty(Property p)
p - TBD: Description of the incoming method parameter
public MutableProperty(IPropertyName name,
String value)
throws ResourceException
name - The property namevalue - The property string value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
Date value)
throws ResourceException
name - The property namevalue - The property date value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
Boolean value)
throws ResourceException
name - The property namevalue - The property booelan value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
Integer value)
throws ResourceException
name - The property namevalue - The property integer value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
Long value)
throws ResourceException
name - The property namevalue - The property long value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
XMLMarkup value)
throws ResourceException
name - The property namevalue - The property xml value
ResourceException - Exception raised in failure situation
public 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 type
public MutableProperty(IPropertyName name,
Object value)
throws ResourceException
name - The property namevalue - The value object
ResourceException - If the instance of the value parameter is not
allowed
public MutableProperty(IPropertyName name,
IPropertyDef def,
String value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
Date value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
Boolean value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
Integer value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
Long value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
XMLMarkup value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
Object value)
throws ResourceException
name - The property namedef - The property definitionvalue - The value object
ResourceException - If the instance of the value parameter is not
allowed or does not matach the type
public 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 type
public MutableProperty(IPropertyName name,
String value,
Properties attributes)
throws ResourceException
name - The property namevalue - The property string valueattributes - TBD: Description of the incoming method parameter
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
Date value,
Properties attributes)
throws ResourceException
name - The property namevalue - The property date valueattributes - TBD: Description of the incoming method parameter
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
Boolean value,
Properties attributes)
throws ResourceException
name - The property namevalue - The property booelan valueattributes - TBD: Description of the incoming method parameter
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
Integer value,
Properties attributes)
throws ResourceException
name - The property namevalue - The property integer valueattributes - TBD: Description of the incoming method parameter
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
Long value,
Properties attributes)
throws ResourceException
name - The property namevalue - The property long valueattributes - TBD: Description of the incoming method parameter
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
XMLMarkup value,
Properties attributes)
throws ResourceException
name - The property namevalue - The property xml valueattributes - TBD: Description of the incoming method parameter
ResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
Object value,
Properties attributes)
throws ResourceException
name - The property namevalue - The value objectattributes - TBD: Description of the incoming method parameter
ResourceException - If the instance of the value parameter is not
allowed
public 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 parameter
ResourceException - If the instance of the value does not match
the property type
public 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 parameter
ResourceException - Exception raised in failure situation
public 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 parameter
ResourceException - Exception raised in failure situation
public 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 parameter
ResourceException - Exception raised in failure situation
public 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 parameter
ResourceException - Exception raised in failure situation
public 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 parameter
ResourceException - Exception raised in failure situation
public 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 parameter
ResourceException - Exception raised in failure situation
public 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 parameter
ResourceException - If the instance of the value parameter is not
allowed or does not matach the type
public 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 parameter
ResourceException - If the instance of the value does not match
the property type| Method Detail |
|---|
public void setIntValue(int value)
throws ResourceException
IMutableProperty
setIntValue in interface IMutablePropertyvalue - The new value
ResourceException
public void setDateValue(Date value)
throws ResourceException
IMutableProperty
setDateValue in interface IMutablePropertyvalue - The new value
ResourceException
public void setDateValueFromLong(long value)
throws ResourceException
IMutableProperty
setDateValueFromLong in interface IMutablePropertyvalue - The new value
ResourceException
public void setStringValue(String value)
throws ResourceException
IMutableProperty
setStringValue in interface IMutablePropertyvalue - The new value
ResourceException
public void setLongIntValue(long value)
throws ResourceException
IMutableProperty
setLongIntValue in interface IMutablePropertyvalue - The new value
ResourceException
public void setBooleanValue(boolean value)
throws ResourceException
IMutableProperty
setBooleanValue in interface IMutablePropertyvalue - The new value
ResourceException
public void setValues(List values)
throws ResourceException
IMutableProperty
setValues 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 | 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(Object value)
throws ResourceException
IMutableProperty
addValue 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 | 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,
Object value)
throws ResourceException
IMutableProperty
setValue in interface IMutablePropertyindex - 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
public void removeValue(int index)
throws ResourceException
IMutableProperty
removeValue in interface IMutablePropertyindex - The zero-based index
ResourceException - If the property is not defined as multi-valued
If the index it out of boundspublic IMutableProperty getMutable()
IProperty
getMutable in interface IPropertygetMutable in class Property
public void setAttribute(String name,
String value)
throws ResourceException
IMutableProperty
setAttribute in interface IMutablePropertyname - Attribute namevalue - Attribute value
ResourceException
public void setAttributes(Properties attributes)
throws ResourceException
IMutableProperty
setAttributes in interface IMutablePropertyattributes - All attributes
ResourceException
public void removeAttribute(String name)
throws ResourceException
IMutableProperty
removeAttribute in interface IMutablePropertyname - 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 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||