SAP NetWeaver '04

com.sapportals.wcm.repository
Class PropertyDef

[contained in: com.sap.netweaver.bc.rf.par - bc.rf.framework_api.jar]
java.lang.Object
  |
  +--com.sapportals.wcm.WcmObject
        |
        +--com.sapportals.wcm.repository.PropertyDef
All Implemented Interfaces:
IPropertyDef

public class PropertyDef
extends WcmObject
implements IPropertyDef

Information about the type, name and other attributes of a property.

Copyright (c) SAP AG 2001-2004


Fields inherited from class com.sapportals.wcm.WcmObject
ORDER_TYPE_MANUAL, ORDER_TYPE_NONE
 
Constructor Summary
protected PropertyDef(IPropertyDef def)
          Construct a new PropertyDef
  PropertyDef(PropertyDef def)
          Construct a new PropertyDef
  PropertyDef(PropertyType type, boolean isMultivalued)
           
  PropertyDef(PropertyType type, boolean isMultivalued, boolean isRequired, boolean isReadonly, boolean isIndexed, boolean isHidden)
          Constructs a new PropertyDef
  PropertyDef(PropertyType type, boolean isMultivalued, boolean isRequired, boolean isReadonly, boolean isIndexed, boolean isHidden, java.util.Properties attributes)
          Constructs a new PropertyDef
 
Method Summary
static IPropertyDef createContentLanguage()
           
static IPropertyDef createContentLength()
           
static IPropertyDef createContentType()
           
static IPropertyDef createCreatedBy()
           
static IPropertyDef createCreationDate()
           
static IPropertyDef createDescription()
           
static IPropertyDef createDisplayname()
           
static IPropertyDef createETag()
           
static IPropertyDef createHidden()
           
static IPropertyDef createLastModified()
           
static IPropertyDef createLastModifiedBy()
           
static IPropertyDef createReadOnly()
           
static IPropertyDef createResourceType()
           
 boolean equals(java.lang.Object propDef)
          Compare two PropertyDef objects for equality
 java.lang.String getAttribute(java.lang.String name)
          Get the value of an attribute.
 java.util.Properties getAttributes()
          Returns a collection of attributes
 PropertyType getType()
          Returns the type of the property.
 int hashCode()
          Hashcode
 boolean isHidden()
          Returns the value of the Hidden attribute
 boolean isIndexed()
          Returns the value of the Indexed attribute
 boolean isMultivalued()
          Returns true if the property is multi-valued.
 boolean isReadonly()
          Returns the value of the Readonly attribute
 boolean isRequired()
          Returns the value of the Required attribute
 java.lang.String toString()
          String representation of a property def
static PropertyDef valueOf(PropertyType type, boolean isMultivalued)
           
static PropertyDef valueOf(PropertyType type, boolean isMultivalued, boolean isReadOnly, boolean isHidden)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyDef

public PropertyDef(PropertyType type,
                   boolean isMultivalued,
                   boolean isRequired,
                   boolean isReadonly,
                   boolean isIndexed,
                   boolean isHidden)
            throws ResourceException
Constructs a new PropertyDef
Parameters:
type - The property Type
isMultivalued - If the property has multible values
isRequired - If the property can not be deleted
isReadonly - If the property value can not be changed
isIndexed - If the property value is indexed
isHidden - TBD: Description of the incoming method parameter
Throws:
ResourceException - If the property name contains illegal characters (e.g. whitespace)

PropertyDef

public PropertyDef(PropertyType type,
                   boolean isMultivalued,
                   boolean isRequired,
                   boolean isReadonly,
                   boolean isIndexed,
                   boolean isHidden,
                   java.util.Properties attributes)
            throws ResourceException
Constructs a new PropertyDef
Parameters:
type - The property Type
isMultivalued - If the property has multible values
isRequired - If the property can not be deleted
isReadonly - If the property value can not be changed
isIndexed - If the property value is indexed
isHidden - TBD: Description of the incoming method parameter
attributes - TBD: Description of the incoming method parameter
Throws:
ResourceException - If the property name contains illegal characters (e.g. whitespace)

PropertyDef

public PropertyDef(PropertyDef def)
Construct a new PropertyDef
Parameters:
def - TBD: Description of the incoming method parameter

PropertyDef

public PropertyDef(PropertyType type,
                   boolean isMultivalued)

PropertyDef

protected PropertyDef(IPropertyDef def)
Construct a new PropertyDef
Parameters:
def - TBD: Description of the incoming method parameter
Method Detail

valueOf

public static final PropertyDef valueOf(PropertyType type,
                                        boolean isMultivalued)

valueOf

public static final PropertyDef valueOf(PropertyType type,
                                        boolean isMultivalued,
                                        boolean isReadOnly,
                                        boolean isHidden)

createCreatedBy

public static IPropertyDef createCreatedBy()

createLastModifiedBy

public static IPropertyDef createLastModifiedBy()

createCreationDate

public static IPropertyDef createCreationDate()

createHidden

public static IPropertyDef createHidden()

createLastModified

public static IPropertyDef createLastModified()

createDescription

public static IPropertyDef createDescription()

createDisplayname

public static IPropertyDef createDisplayname()

createReadOnly

public static IPropertyDef createReadOnly()

createContentLength

public static IPropertyDef createContentLength()

createContentType

public static IPropertyDef createContentType()

createETag

public static IPropertyDef createETag()

createContentLanguage

public static IPropertyDef createContentLanguage()

createResourceType

public static IPropertyDef createResourceType()

hashCode

public int hashCode()
Hashcode
Overrides:
hashCode in class java.lang.Object
Returns:
TBD: Description of the outgoing return value

equals

public boolean equals(java.lang.Object propDef)
Compare two PropertyDef objects for equality
Overrides:
equals in class java.lang.Object
Parameters:
propDef - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

toString

public java.lang.String toString()
String representation of a property def
Overrides:
toString in class java.lang.Object
Returns:
TBD: Description of the outgoing return value

isMultivalued

public boolean isMultivalued()
Returns true if the property is multi-valued.
Specified by:
isMultivalued in interface IPropertyDef
Returns:
A boolean value

isRequired

public boolean isRequired()
Returns the value of the Required attribute
Specified by:
isRequired in interface IPropertyDef
Returns:
A boolean value

getType

public PropertyType getType()
Returns the type of the property.
Specified by:
getType in interface IPropertyDef
Returns:
type

isReadonly

public boolean isReadonly()
Returns the value of the Readonly attribute
Specified by:
isReadonly in interface IPropertyDef
Returns:
readonly

isIndexed

public boolean isIndexed()
Returns the value of the Indexed attribute
Specified by:
isIndexed in interface IPropertyDef
Returns:
indexed

isHidden

public boolean isHidden()
Returns the value of the Hidden attribute
Specified by:
isHidden in interface IPropertyDef
Returns:
hidden

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Get the value of an attribute.
Specified by:
getAttribute in interface IPropertyDef
Parameters:
name - Attribute name
Returns:
The value

getAttributes

public java.util.Properties getAttributes()
Returns a collection of attributes
Specified by:
getAttributes in interface IPropertyDef
Returns:
All attributes

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.