SAP NetWeaver '04

com.sapportals.wcm.repository
Interface IProperty

[contained in: com.sap.netweaver.bc.rf.par - bc.rf.framework_api.jar]
All Known Subinterfaces:
IMutableProperty
All Known Implementing Classes:
Property

public interface IProperty

This interface provides read-only access to a property of a resource. A property has a name (IPropertyName), data type (PropertyType), value(s), atttributes, a definition (IPropertyDef) and a description.

See Also:
IPropertyName, PropertyType, IPropertyDef, IMutableProperty

Method Summary
 java.lang.String getAttribute(java.lang.String name)
          Get the value of an attribute
 java.util.Properties getAttributes()
          Returns a collection of attributes
 boolean getBooleanValue()
          Get the property value if the type is PropertyType.BOOLEAN
 java.util.Date getDateValue()
          Get the property value if the type is PropertyType.DATE
 java.lang.String getDescription()
          Returns the description of the property
 java.lang.String getDescription(IResourceContext context)
           
 int getIntValue()
          Get the property value if the type is PropertyType.INTEGER
 long getLongIntValue()
          Get the property value if the type is PropertyType.LONG
 IMutableProperty getMutable()
          Returns a copy of this propertry that can be modified
 IPropertyDef getPropertyDef()
          Get a reference to the proeprty definition.
 IPropertyName getPropertyName()
          Returns the property name
 java.lang.String getStringValue()
          Get the property value if the type is String
 PropertyType getType()
          Return the property's data type
 java.lang.Object getValue()
          Returns the property value as a Object if this is not a multi-valued property.
 java.lang.String getValueAsString()
          Get the property value converted to a string.
 java.util.List getValues()
          Returns the property values if this is a multi-valued property.
 boolean isMultivalued()
          Returns true if the property is multi-valued
 

Method Detail

getPropertyName

public IPropertyName getPropertyName()
Returns the property name
Returns:
A property name object

getType

public PropertyType getType()
Return the property's data type
Returns:
A property type constant

isMultivalued

public boolean isMultivalued()
Returns true if the property is multi-valued
Returns:
multivalued

getPropertyDef

public IPropertyDef getPropertyDef()
Get a reference to the proeprty definition.
Returns:
The property definition

getValueAsString

public java.lang.String getValueAsString()
Get the property value converted to a string.
Returns:
A String

getBooleanValue

public boolean getBooleanValue()
Get the property value if the type is PropertyType.BOOLEAN
Returns:
The value

getIntValue

public int getIntValue()
Get the property value if the type is PropertyType.INTEGER
Returns:
The value

getLongIntValue

public long getLongIntValue()
Get the property value if the type is PropertyType.LONG
Returns:
The value

getDateValue

public java.util.Date getDateValue()
Get the property value if the type is PropertyType.DATE
Returns:
The value

getStringValue

public java.lang.String getStringValue()
Get the property value if the type is String
Returns:
The value

getValues

public java.util.List getValues()
                         throws ResourceException
Returns the property values if this is a multi-valued property.
Returns:
An unmodifiable List of value objects (String, Date, Integer, Long, Boolean, XMLMarkup)

getValue

public java.lang.Object getValue()
                          throws ResourceException
Returns the property value as a Object if this is not a multi-valued property.
Returns:
The value object (String, Date, Integer, Long, Boolean, XMLMarkup)

getMutable

public IMutableProperty getMutable()
Returns a copy of this propertry that can be modified
Returns:
A mutable property instance

getAttribute

public java.lang.String getAttribute(java.lang.String name)
                              throws ResourceException
Get the value of an attribute
Parameters:
name - Attribute name
Returns:
The value, ot null if the name does not exist
Throws:
ResourceException -  

getAttributes

public java.util.Properties getAttributes()
                                   throws ResourceException
Returns a collection of attributes
Returns:
The attributes
Throws:
ResourceException -  

getDescription

public java.lang.String getDescription()
                                throws WcmException
Returns the description of the property
Returns:
description
Throws:
WcmException - Exception raised in failure situation

getDescription

public java.lang.String getDescription(IResourceContext context)
                                throws WcmException

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.