SAP NetWeaver '04

com.sap.netweaver.bc.rf.common.property.datetype
Class DateSingleValueProperty

[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.datetype.DateSingleValueProperty
All Implemented Interfaces:
IProperty, java.io.Serializable
Direct Known Subclasses:
DateSingleValueProperty, MutableDateSingleValueProperty

public class DateSingleValueProperty
extends AbstractProperty

Class implementing a Date single value property. See IProperty and IMutableProperty for details on properties

See Also:
AbstractProperty, IMutableProperty, IProperty, Serialized Form

Field Summary
protected  PropertyType propertyType
           
protected  java.util.Date value
           
 
Fields inherited from class com.sap.netweaver.bc.rf.common.property.AbstractProperty
attributes, flags, name, resourceBundles
 
Constructor Summary
  DateSingleValueProperty(PropertyType propertyType, IPropertyName name, java.util.Date value)
          Construct property instance based on its internals.
  DateSingleValueProperty(PropertyType propertyType, IPropertyName name, java.util.Date value, int flags)
          Construct property instance based on its internals.
  DateSingleValueProperty(PropertyType propertyType, IPropertyName name, java.util.Date value, java.util.Properties attributes)
          Construct property instance based on its internals.
  DateSingleValueProperty(PropertyType propertyType, IPropertyName name, java.util.Date value, java.util.Properties attributes, int flags)
          Construct property instance based on its internals.
protected DateSingleValueProperty(PropertyType propertyType, IPropertyName name, java.util.Date value, java.util.Properties attributes, int flags, ResourceBundles resourceBundles)
          Construct property instance based on its internals.
 
Method Summary
 PropertyType getType()
          Get immutable type of this property.
 java.util.Date getValue()
          Get property value.
 long getValueAsLong()
          Get property value as long.
 java.lang.String getValueAsString()
          Get the property value converted to a string.
 java.lang.String[] getValuesAsStrings()
          Get the property values converted to a string array.
 boolean isMultiValue()
          Returns true if this property is a multi-value property.
 
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
 

Field Detail

propertyType

protected PropertyType propertyType

value

protected java.util.Date value
Constructor Detail

DateSingleValueProperty

public DateSingleValueProperty(PropertyType propertyType,
                               IPropertyName name,
                               java.util.Date value)
                        throws ResourceException
Construct property instance based on its internals.
Parameters:
propertyType - specific property type
name - property name
value - property value
Throws:
ResourceException - when the property creation failed

DateSingleValueProperty

public DateSingleValueProperty(PropertyType propertyType,
                               IPropertyName name,
                               java.util.Date value,
                               java.util.Properties attributes)
                        throws ResourceException
Construct property instance based on its internals.
Parameters:
propertyType - specific property type
name - property name
value - property value
attributes - property attributes
Throws:
ResourceException - when the property creation failed

DateSingleValueProperty

public DateSingleValueProperty(PropertyType propertyType,
                               IPropertyName name,
                               java.util.Date value,
                               int flags)
                        throws ResourceException
Construct property instance based on its internals.
Parameters:
propertyType - specific property type
name - property name
value - property value
flags - bit array holding internal system attributes according to PropertyFlags bit mask fields
Throws:
ResourceException - when the property creation failed

DateSingleValueProperty

public DateSingleValueProperty(PropertyType propertyType,
                               IPropertyName name,
                               java.util.Date value,
                               java.util.Properties attributes,
                               int flags)
                        throws ResourceException
Construct property instance based on its internals.
Parameters:
propertyType - specific property type
name - property name
value - property value
attributes - property attributes
flags - bit array holding internal system attributes according to PropertyFlags bit mask fields
Throws:
ResourceException - when the property creation failed

DateSingleValueProperty

protected DateSingleValueProperty(PropertyType propertyType,
                                  IPropertyName name,
                                  java.util.Date value,
                                  java.util.Properties attributes,
                                  int flags,
                                  ResourceBundles resourceBundles)
                           throws ResourceException
Construct property instance based on its internals.
Parameters:
propertyType - specific property type
name - property name
value - property value
attributes - property attributes
flags - bit array holding internal system attributes according to PropertyFlags bit mask fields
resourceBundles - resource bundles containing (localized) property description
Throws:
ResourceException - when the property creation failed
Method Detail

getType

public PropertyType getType()
Get immutable type of this property.
Returns:
immutable type of this property

isMultiValue

public boolean isMultiValue()
Returns true if this property is a multi-value property.
Returns:
true if this property is a multi-value property

getValueAsString

public java.lang.String getValueAsString()
                                  throws ResourceException
Get the property value converted to a string. If this is a multi value property just return the first value.
Returns:
property value converted to a string
Throws:
ResourceException - when the property is invalid

getValuesAsStrings

public java.lang.String[] getValuesAsStrings()
                                      throws ResourceException
Get the property values converted to a string array. If this is a single value property just return an array with the value as only element.
Returns:
array of property values converted to strings
Throws:
ResourceException - when the property is invalid

getValue

public java.util.Date getValue()
Get property value.
Returns:
property value

getValueAsLong

public long getValueAsLong()
Get property value as long.
Returns:
property value

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.