|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sapportals.wcm.WcmObject
|
+--com.sapportals.wcm.repository.Property
|
+--com.sapportals.wcm.repository.MutableProperty
A property of a resource object that can be modified
| 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,
java.lang.Boolean value)
Construct a new property of type BOOLEAN. |
|
MutableProperty(IPropertyName name,
java.lang.Boolean value,
java.util.Properties attributes)
Construct a new property of type BOOLEAN. |
|
MutableProperty(IPropertyName name,
java.util.Date value)
Construct a new property of type DATE. |
|
MutableProperty(IPropertyName name,
java.util.Date value,
java.util.Properties attributes)
Construct a new property of type DATE. |
|
MutableProperty(IPropertyName name,
java.lang.Integer value)
Construct a new property of type INTEGER. |
|
MutableProperty(IPropertyName name,
java.lang.Integer value,
java.util.Properties attributes)
Construct a new property of type INTEGER. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Boolean value)
Construct a new property of type BOOLEAN. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Boolean value,
java.util.Properties attributes)
Construct a new property of type BOOLEAN. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.util.Date value)
Construct a new property of type DATE. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.util.Date value,
java.util.Properties attributes)
Construct a new property of type DATE. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Integer value)
Construct a new property of type INTEGER. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Integer value,
java.util.Properties attributes)
Construct a new property of type INTEGER. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.util.List values)
Construct a new multi-valued property. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.util.List values,
java.util.Properties attributes)
Construct a new multi-valued property. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Long value)
Construct a new property of type LONG. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Long value,
java.util.Properties attributes)
Construct a new property of type LONG. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Object value)
Construct a new property. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Object value,
java.util.Properties attributes)
Construct a new property. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.String value)
Construct a new property of type STRING. |
|
MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.String value,
java.util.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,
java.util.Properties attributes)
Construct a new property of type XML. |
|
MutableProperty(IPropertyName name,
java.lang.Long value)
Construct a new property of type LONG. |
|
MutableProperty(IPropertyName name,
java.lang.Long value,
java.util.Properties attributes)
Construct a new property of type LONG. |
|
MutableProperty(IPropertyName name,
java.lang.Object value)
Construct a new property. |
|
MutableProperty(IPropertyName name,
java.lang.Object value,
java.util.Properties attributes)
Construct a new property. |
|
MutableProperty(IPropertyName name,
PropertyType type,
java.util.List values)
Construct a new multi-valued property. |
|
MutableProperty(IPropertyName name,
PropertyType type,
java.util.List values,
java.util.Properties attributes)
Construct a new multi-valued property. |
|
MutableProperty(IPropertyName name,
java.lang.String value)
Construct a new property of type STRING. |
|
MutableProperty(IPropertyName name,
java.lang.String value,
java.util.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,
java.util.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(java.lang.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(java.lang.String name)
Removes a attribute |
void |
removeValue(int index)
Remove a value of a multi-value property |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Set an attribute |
void |
setAttributes(java.util.Properties attributes)
Set the complete collection of attributes |
void |
setBooleanValue(boolean value)
Sets the property value if the type ist PropertyType.BOOLEAN |
void |
setDateValue(java.util.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(java.lang.String value)
Sets the property value if the type ist PropertyType.STRING |
void |
setValue(int index,
java.lang.Object value)
Set a value of a multi-value property |
void |
setValues(java.util.List values)
Sets all values of a multi-value property |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, 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,
java.lang.String value)
throws ResourceException
name - The property namevalue - The property string valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
java.util.Date value)
throws ResourceException
name - The property namevalue - The property date valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
java.lang.Boolean value)
throws ResourceException
name - The property namevalue - The property booelan valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
java.lang.Integer value)
throws ResourceException
name - The property namevalue - The property integer valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
java.lang.Long value)
throws ResourceException
name - The property namevalue - The property long valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
XMLMarkup value)
throws ResourceException
name - The property namevalue - The property xml valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
PropertyType type,
java.util.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,
java.lang.Object value)
throws ResourceException
name - The property namevalue - The value objectResourceException - If the instance of the value parameter is not
allowed
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.String value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.util.Date value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Boolean value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Integer value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Long value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string valueResourceException - 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 valueResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.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 type
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.util.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,
java.lang.String value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property string valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
java.util.Date value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property date valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
java.lang.Boolean value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property booelan valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
java.lang.Integer value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property integer valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
java.lang.Long value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property long valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
XMLMarkup value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property xml valueattributes - TBD: Description of the incoming method parameterResourceException - Exception raised in failure situation
public MutableProperty(IPropertyName name,
java.lang.Object value,
java.util.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
allowed
public MutableProperty(IPropertyName name,
PropertyType type,
java.util.List values,
java.util.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 type
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.String value,
java.util.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 situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.util.Date value,
java.util.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 situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Boolean value,
java.util.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 situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Integer value,
java.util.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 situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Long value,
java.util.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 situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
XMLMarkup value,
java.util.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 situation
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.lang.Object value,
java.util.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 type
public MutableProperty(IPropertyName name,
IPropertyDef def,
java.util.List values,
java.util.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 type| Method Detail |
public void setIntValue(int value)
throws ResourceException
IMutablePropertysetIntValue in interface IMutablePropertycom.sapportals.wcm.repository.IMutablePropertyvalue - The new valueResourceException -
public void setDateValue(java.util.Date value)
throws ResourceException
IMutablePropertysetDateValue in interface IMutablePropertycom.sapportals.wcm.repository.IMutablePropertyvalue - The new valueResourceException -
public void setDateValueFromLong(long value)
throws ResourceException
IMutablePropertysetDateValueFromLong in interface IMutablePropertycom.sapportals.wcm.repository.IMutablePropertyvalue - The new valueResourceException -
public void setStringValue(java.lang.String value)
throws ResourceException
IMutablePropertysetStringValue in interface IMutablePropertycom.sapportals.wcm.repository.IMutablePropertyvalue - The new valueResourceException -
public void setLongIntValue(long value)
throws ResourceException
IMutablePropertysetLongIntValue in interface IMutablePropertycom.sapportals.wcm.repository.IMutablePropertyvalue - The new valueResourceException -
public void setBooleanValue(boolean value)
throws ResourceException
IMutablePropertysetBooleanValue in interface IMutablePropertycom.sapportals.wcm.repository.IMutablePropertyvalue - The new valueResourceException -
public void setValues(java.util.List values)
throws ResourceException
IMutablePropertysetValues in interface IMutablePropertycom.sapportals.wcm.repository.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(java.lang.Object value)
throws ResourceException
IMutablePropertyaddValue in interface IMutablePropertycom.sapportals.wcm.repository.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,
java.lang.Object value)
throws ResourceException
IMutablePropertysetValue in interface IMutablePropertycom.sapportals.wcm.repository.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 bounds
public void removeValue(int index)
throws ResourceException
IMutablePropertyremoveValue in interface IMutablePropertycom.sapportals.wcm.repository.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 Propertycom.sapportals.wcm.repository.IProperty
public void setAttribute(java.lang.String name,
java.lang.String value)
throws ResourceException
IMutablePropertysetAttribute in interface IMutablePropertycom.sapportals.wcm.repository.IMutablePropertyname - Attribute namevalue - Attribute valueResourceException -
public void setAttributes(java.util.Properties attributes)
throws ResourceException
IMutablePropertysetAttributes in interface IMutablePropertycom.sapportals.wcm.repository.IMutablePropertyattributes - All attributesResourceException -
public void removeAttribute(java.lang.String name)
throws ResourceException
IMutablePropertyremoveAttribute in interface IMutablePropertycom.sapportals.wcm.repository.IMutablePropertyname - Attribute nameResourceException -
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||