com.sap.netweaver.bc.rf.common.property.inttype
Class MutableIntSingleValueProperty
[contained in: com.sap.netweaver.bc.rf.par - bc.rf.common_api.jar]
java.lang.Object
|
+--com.sap.netweaver.bc.rf.common.property.AbstractProperty
|
+--com.sap.netweaver.bc.rf.common.property.inttype.IntSingleValueProperty
|
+--com.sap.netweaver.bc.rf.common.property.inttype.MutableIntSingleValueProperty
- All Implemented Interfaces:
- IMutableProperty, IProperty, java.io.Serializable
- public class MutableIntSingleValueProperty
- extends IntSingleValueProperty
- implements IMutableProperty
Class implementing a int single value property. See IProperty and
IMutableProperty for details on properties
- See Also:
AbstractProperty,
IMutableProperty,
IProperty, Serialized Form
|
Method Summary |
void |
clearAttributes()
Remove all attributes for the property at once. |
java.lang.String |
getAttribute(java.lang.String attributeName)
Get attribute for the property. |
void |
removeAttribute(java.lang.String attributeName)
Remove attribute from the property. |
void |
setAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Add attribute for the property. |
void |
setAttributes(java.util.Properties attributes)
Set all attributes for the property at once. |
void |
setValue(int value)
Set property value. |
| Methods inherited from class com.sap.netweaver.bc.rf.common.property.AbstractProperty |
areFlagsSet, equals, getAttributes, getDescription, getDescription, getFlags, getPropertyName, hashCode, isHidden, isLive, isReadOnly, isRequired, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sap.netweaver.bc.rf.common.property.IProperty |
areFlagsSet, getAttributes, getDescription, getDescription, getFlags, getPropertyName, getType, getValueAsString, getValuesAsStrings, isHidden, isLive, isMultiValue, isReadOnly, isRequired |
MutableIntSingleValueProperty
public MutableIntSingleValueProperty(IntSingleValueProperty property)
throws ResourceException
- Construct property instance/copy based on another property template
(uaually a property to be changed in parts).
- Parameters:
property - property used as template- Throws:
ResourceException - when the property creation failed
MutableIntSingleValueProperty
public MutableIntSingleValueProperty(IPropertyName name,
int value)
throws ResourceException
- Construct property instance based on its internals.
- Parameters:
name - property namevalue - property value- Throws:
ResourceException - when the property creation failed
MutableIntSingleValueProperty
public MutableIntSingleValueProperty(IPropertyName name,
int value,
java.util.Properties attributes)
throws ResourceException
- Construct property instance based on its internals.
- Parameters:
name - property namevalue - property valueattributes - property attributes- Throws:
ResourceException - when the property creation failed
MutableIntSingleValueProperty
public MutableIntSingleValueProperty(IPropertyName name,
int value,
int flags)
throws ResourceException
- Construct property instance based on its internals.
- Parameters:
name - property namevalue - property valueflags - bit array holding internal system attributes according to
PropertyFlags bit mask fields- Throws:
ResourceException - when the property creation failed
MutableIntSingleValueProperty
public MutableIntSingleValueProperty(IPropertyName name,
int value,
java.util.Properties attributes,
int flags)
throws ResourceException
- Construct property instance based on its internals.
- Parameters:
name - property namevalue - property valueattributes - property attributesflags - bit array holding internal system attributes according to
PropertyFlags bit mask fields- Throws:
ResourceException - when the property creation failed
setValue
public void setValue(int value)
- Set property value.
- Parameters:
value - property value
setAttributes
public void setAttributes(java.util.Properties attributes)
throws ResourceException
- Set all attributes for the property at once. The given attribute map will
be stored directly (as is - without being copied). Note that this call
disconnects the attribute map returned from a getAttributes() call from the
property.
- Specified by:
setAttributes in interface IMutableProperty
- Parameters:
attributes - property map holding all attributes- Throws:
ResourceException - when the attributes map or the property is
invalid
clearAttributes
public void clearAttributes()
throws ResourceException
- Remove all attributes for the property at once.
- Specified by:
clearAttributes in interface IMutableProperty
- Throws:
ResourceException - when the property is invalid
getAttribute
public java.lang.String getAttribute(java.lang.String attributeName)
throws ResourceException
- Get attribute for the property.
- Specified by:
getAttribute in interface IProperty- Overrides:
getAttribute in class AbstractProperty
- Parameters:
attributeName - attribute name- Returns:
- attribute value
- Throws:
ResourceException - when the attribute name or the property is
invalid
setAttribute
public void setAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
throws ResourceException
- Add attribute for the property.
- Specified by:
setAttribute in interface IMutableProperty
- Parameters:
attributeName - attribute nameattributeValue - attribute value- Throws:
ResourceException - when the attribute name or value or the
property is invalid
removeAttribute
public void removeAttribute(java.lang.String attributeName)
throws ResourceException
- Remove attribute from the property.
- Specified by:
removeAttribute in interface IMutableProperty
- Parameters:
attributeName - attribute name- Throws:
ResourceException - when the attribute name or the property is
invalid
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.