SAP NetWeaver '04

com.sapportals.wcm.repository
Interface IMutableProperty

[contained in: com.sap.netweaver.bc.rf.par - bc.rf.framework_api.jar]
All Superinterfaces:
IProperty
All Known Implementing Classes:
MutableProperty

public interface IMutableProperty
extends IProperty

A property of a resource object with a mutable interface.


Method Summary
 void addValue(java.lang.Object value)
          Adds a value to the list for a multi-value property
 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 interface com.sapportals.wcm.repository.IProperty
getAttribute, getAttributes, getBooleanValue, getDateValue, getDescription, getDescription, getIntValue, getLongIntValue, getMutable, getPropertyDef, getPropertyName, getStringValue, getType, getValue, getValueAsString, getValues, isMultivalued
 

Method Detail

setIntValue

public void setIntValue(int value)
                 throws ResourceException
Sets the property value if the type ist PropertyType.INTEGER
Parameters:
value - The new value
Throws:
ResourceException -  

setDateValue

public void setDateValue(java.util.Date value)
                  throws ResourceException
Sets the property value if the type ist PropertyType.DATE
Parameters:
value - The new value
Throws:
ResourceException -  

setDateValueFromLong

public void setDateValueFromLong(long value)
                          throws ResourceException
Sets the property value if the type ist PropertyType.DATE
Parameters:
value - The new value
Throws:
ResourceException -  

setStringValue

public void setStringValue(java.lang.String value)
                    throws ResourceException
Sets the property value if the type ist PropertyType.STRING
Parameters:
value - The new value
Throws:
ResourceException -  

setLongIntValue

public void setLongIntValue(long value)
                     throws ResourceException
Sets the property value if the type ist PropertyType.LONG
Parameters:
value - The new value
Throws:
ResourceException -  

setBooleanValue

public void setBooleanValue(boolean value)
                     throws ResourceException
Sets the property value if the type ist PropertyType.BOOLEAN
Parameters:
value - The new value
Throws:
ResourceException -  

setValues

public void setValues(java.util.List values)
               throws ResourceException
Sets all values of a multi-value property
Parameters:
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 | String
Throws:
ResourceException - If the property is not defined as multi-valued If a instance of a value does not match the property type

addValue

public void addValue(java.lang.Object value)
              throws ResourceException
Adds a value to the list for a multi-value property
Parameters:
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 | String
Throws:
ResourceException - If the property is not defined as multi-valued If the instance of the value does not match the property type

setValue

public void setValue(int index,
                     java.lang.Object value)
              throws ResourceException
Set a value of a multi-value property
Parameters:
index - The zero-based index
value - The new value
Throws:
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

removeValue

public void removeValue(int index)
                 throws ResourceException
Remove a value of a multi-value property
Parameters:
index - The zero-based index
Throws:
ResourceException - If the property is not defined as multi-valued If the index it out of bounds

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
                  throws ResourceException
Set an attribute
Parameters:
name - Attribute name
value - Attribute value
Throws:
ResourceException -  

setAttributes

public void setAttributes(java.util.Properties attributes)
                   throws ResourceException
Set the complete collection of attributes
Parameters:
attributes - All attributes
Throws:
ResourceException -  

removeAttribute

public void removeAttribute(java.lang.String name)
                     throws ResourceException
Removes a attribute
Parameters:
name - Attribute name
Throws:
ResourceException -  

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.