SAP NetWeaver '04

com.sap.netweaver.bc.rf.common.property.booleantype
Class MutableBooleanMultiValueProperty

[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.booleantype.BooleanMultiValueProperty
              |
              +--com.sap.netweaver.bc.rf.common.property.booleantype.MutableBooleanMultiValueProperty
All Implemented Interfaces:
IMutableProperty, IProperty, java.io.Serializable

public class MutableBooleanMultiValueProperty
extends BooleanMultiValueProperty
implements IMutableProperty

Class implementing a boolean multi value property. See IProperty and IMutableProperty for details on properties.

See Also:
AbstractProperty, IMutableProperty, IProperty, Serialized Form

Fields inherited from class com.sap.netweaver.bc.rf.common.property.booleantype.BooleanMultiValueProperty
values
 
Fields inherited from class com.sap.netweaver.bc.rf.common.property.AbstractProperty
attributes, flags, name, resourceBundles
 
Constructor Summary
MutableBooleanMultiValueProperty(BooleanMultiValueProperty property)
          Construct property instance/copy based on another property template (uaually a property to be changed in parts).
MutableBooleanMultiValueProperty(IPropertyName name, boolean[] values)
          Construct property instance based on its internals.
MutableBooleanMultiValueProperty(IPropertyName name, boolean[] values, int flags)
          Construct property instance based on its internals.
MutableBooleanMultiValueProperty(IPropertyName name, boolean[] values, java.util.Properties attributes)
          Construct property instance based on its internals.
MutableBooleanMultiValueProperty(IPropertyName name, boolean[] values, java.util.Properties attributes, int flags)
          Construct property instance based on its internals.
 
Method Summary
 void addValue(boolean value)
          Add property value.
 void clearAttributes()
          Remove all attributes for the property at once.
 void insertValue(boolean value, int index)
          Insert property value at given index.
 void removeAttribute(java.lang.String attributeName)
          Remove attribute from the property.
 void removeValue(int index)
          Remove property value with given index.
 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(boolean value, int index)
          Set property value with given index.
 void setValues(boolean[] values)
          Set array of property values.
 
Methods inherited from class com.sap.netweaver.bc.rf.common.property.booleantype.BooleanMultiValueProperty
getType, getValue, getValueAsString, getValues, getValuesAsStrings, isMultiValue
 
Methods inherited from class com.sap.netweaver.bc.rf.common.property.AbstractProperty
areFlagsSet, equals, getAttribute, 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, getAttribute, getAttributes, getDescription, getDescription, getFlags, getPropertyName, getType, getValueAsString, getValuesAsStrings, isHidden, isLive, isMultiValue, isReadOnly, isRequired
 

Constructor Detail

MutableBooleanMultiValueProperty

public MutableBooleanMultiValueProperty(BooleanMultiValueProperty 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

MutableBooleanMultiValueProperty

public MutableBooleanMultiValueProperty(IPropertyName name,
                                        boolean[] values)
                                 throws ResourceException
Construct property instance based on its internals.
Parameters:
name - property name
values - property values
Throws:
ResourceException - when the property creation failed

MutableBooleanMultiValueProperty

public MutableBooleanMultiValueProperty(IPropertyName name,
                                        boolean[] values,
                                        java.util.Properties attributes)
                                 throws ResourceException
Construct property instance based on its internals.
Parameters:
name - property name
values - property values
attributes - property attributes
Throws:
ResourceException - when the property creation failed

MutableBooleanMultiValueProperty

public MutableBooleanMultiValueProperty(IPropertyName name,
                                        boolean[] values,
                                        int flags)
                                 throws ResourceException
Construct property instance based on its internals.
Parameters:
name - property name
values - property values
flags - bit array holding internal system attributes according to PropertyFlags bit mask fields
Throws:
ResourceException - when the property creation failed

MutableBooleanMultiValueProperty

public MutableBooleanMultiValueProperty(IPropertyName name,
                                        boolean[] values,
                                        java.util.Properties attributes,
                                        int flags)
                                 throws ResourceException
Construct property instance based on its internals.
Parameters:
name - property name
values - property values
attributes - property attributes
flags - bit array holding internal system attributes according to PropertyFlags bit mask fields
Throws:
ResourceException - when the property creation failed
Method Detail

setValues

public void setValues(boolean[] values)
Set array of property values. The given values array will be stored directly (as is - without being copied). Note that this call disconnects the values array returned from a getValues() call from the property.
Parameters:
values - array of property values

setValue

public void setValue(boolean value,
                     int index)
              throws java.lang.IndexOutOfBoundsException
Set property value with given index.
Parameters:
value - property value
index - index of property value
Throws:
java.lang.IndexOutOfBoundsException - when the index is out of bounds

addValue

public void addValue(boolean value)
Add property value. The array will be reallocated and copied, so beware of the performance drawback. Note that this call disconnects the values array returned from a getValues() call from the property.
Parameters:
value - property value

insertValue

public void insertValue(boolean value,
                        int index)
                 throws java.lang.IndexOutOfBoundsException
Insert property value at given index. The array will be reallocated and copied, so beware of the performance drawback. Note that this call disconnects the values array returned from a getValues() call from the property.
Parameters:
value - property value
index - index of property value
Throws:
java.lang.IndexOutOfBoundsException - when the index is out of bounds

removeValue

public void removeValue(int index)
                 throws java.lang.IndexOutOfBoundsException
Remove property value with given index. The array will be reallocated and copied, so beware of the performance drawback. Note that this call disconnects the values array returned from a getValues() call from the property.
Parameters:
index - index of property value
Throws:
java.lang.IndexOutOfBoundsException - when the index is out of bounds

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

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 name
attributeValue - 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

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.