|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sapportals.wcm.WcmObject
|
+--com.sapportals.wcm.repository.Property
A read-only property of a resource object.
Copyright (c) SAP AG 2001-2004
| Field Summary | |
protected java.util.Properties |
m_attributes
The collection of property attributes |
protected java.util.Date |
m_dateValue
The value if the type is Date |
protected ResourceBundles |
m_res
|
protected java.lang.String |
m_value
The value |
protected java.lang.Object |
m_value_object
|
protected java.util.List |
m_values
Values of multivalued property |
| Fields inherited from class com.sapportals.wcm.WcmObject |
ORDER_TYPE_MANUAL, ORDER_TYPE_NONE |
| Constructor Summary | |
|
Property(IPropertyName name,
java.lang.Boolean value)
Construct a new property of type BOOLEAN. |
|
Property(IPropertyName name,
java.lang.Boolean value,
java.util.Properties attributes)
Construct a new property of type BOOLEAN. |
|
Property(IPropertyName name,
java.util.Date value)
Construct a new property of type DATE. |
|
Property(IPropertyName name,
java.util.Date value,
java.util.Properties attributes)
Construct a new property of type DATE. |
|
Property(IPropertyName name,
java.lang.Integer value)
Construct a new property of type INTEGER. |
|
Property(IPropertyName name,
java.lang.Integer value,
java.util.Properties attributes)
Construct a new property of type INTEGER. |
protected |
Property(IPropertyName name,
IPropertyDef def)
|
|
Property(IPropertyName name,
IPropertyDef def,
java.lang.Boolean value)
Construct a new property of type BOOLEAN. |
|
Property(IPropertyName name,
IPropertyDef def,
java.lang.Boolean value,
java.util.Properties attributes)
Construct a new property of type BOOLEAN. |
|
Property(IPropertyName name,
IPropertyDef def,
java.util.Date value)
Construct a new property of type DATE. |
|
Property(IPropertyName name,
IPropertyDef def,
java.util.Date value,
java.util.Properties attributes)
Construct a new property of type DATE. |
|
Property(IPropertyName name,
IPropertyDef def,
java.lang.Integer value)
Construct a new property of type INTEGER. |
|
Property(IPropertyName name,
IPropertyDef def,
java.lang.Integer value,
java.util.Properties attributes)
Construct a new property of type INTEGER. |
|
Property(IPropertyName name,
IPropertyDef def,
java.util.List values)
Construct a new multi-valued property. |
|
Property(IPropertyName name,
IPropertyDef def,
java.util.List values,
java.util.Properties attributes)
Construct a new multi-valued property. |
|
Property(IPropertyName name,
IPropertyDef def,
java.lang.Long value)
Construct a new property of type LONG. |
|
Property(IPropertyName name,
IPropertyDef def,
java.lang.Long value,
java.util.Properties attributes)
Construct a new property of type LONG. |
|
Property(IPropertyName name,
IPropertyDef def,
java.lang.Object value)
Construct a new property. |
|
Property(IPropertyName name,
IPropertyDef def,
java.lang.Object value,
java.util.Properties attributes)
Construct a new property. |
|
Property(IPropertyName name,
IPropertyDef def,
java.lang.String value)
Construct a new property of type STRING. |
|
Property(IPropertyName name,
IPropertyDef def,
java.lang.String value,
java.util.Properties attributes)
Construct a new property of type STRING. |
|
Property(IPropertyName name,
IPropertyDef def,
XMLMarkup value)
Construct a new property of type XML. |
|
Property(IPropertyName name,
IPropertyDef def,
XMLMarkup value,
java.util.Properties attributes)
Construct a new property of type XML. |
|
Property(IPropertyName name,
java.lang.Long value)
Construct a new property of type LONG. |
|
Property(IPropertyName name,
java.lang.Long value,
java.util.Properties attributes)
Construct a new property of type LONG. |
|
Property(IPropertyName name,
java.lang.Object value)
Construct a new property. |
|
Property(IPropertyName name,
java.lang.Object value,
java.util.Properties attributes)
Construct a new property. |
protected |
Property(IPropertyName name,
PropertyType type,
boolean isMultivalued)
|
|
Property(IPropertyName name,
PropertyType type,
java.util.List values)
Construct a new multi-valued property. |
|
Property(IPropertyName name,
PropertyType type,
java.util.List values,
java.util.Properties attributes)
Construct a new multi-valued property. |
|
Property(IPropertyName name,
java.lang.String value)
Construct a new property of type STRING. |
|
Property(IPropertyName name,
java.lang.String value,
java.util.Properties attributes)
Construct a new property of type STRING. |
|
Property(IPropertyName name,
XMLMarkup value)
Construct a new property of type XML. |
|
Property(IPropertyName name,
XMLMarkup value,
java.util.Properties attributes)
Construct a new property of type XML. |
protected |
Property(Property p)
Construct a property as a copy |
| Method Summary | |
static IProperty |
createContentLanguageProp(java.lang.String value)
|
static IProperty |
createContentLengthProp(long length)
|
static IProperty |
createContentTypeProp(java.lang.String value)
|
static IProperty |
createCreatedByProp(java.lang.String value)
|
static IProperty |
createCreationDateProp(java.util.Date date)
|
static IProperty |
createDescriptionProp(java.lang.String value)
|
static IProperty |
createDisplaynameProp(java.lang.String value)
|
static IProperty |
createETagProp(java.lang.String value)
|
static IProperty |
createHiddenProp(boolean value)
|
static IProperty |
createLastModifiedByProp(java.lang.String value)
|
static IProperty |
createLastModifiedProp(java.util.Date date)
|
static IProperty |
createReadOnlyProp(boolean value)
|
static IProperty |
createResourceTypeProp(java.lang.String value)
|
boolean |
equals(java.lang.Object prop)
|
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 |
static boolean |
isSystemProperty(IPropertyName propName)
Returns true if it is the name of a system property |
java.lang.String |
toString()
|
protected void |
validateType(java.lang.Object v)
Validates the instance of the property value |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String m_value
protected java.lang.Object m_value_object
protected java.util.Date m_dateValue
protected java.util.List m_values
protected java.util.Properties m_attributes
protected ResourceBundles m_res
| Constructor Detail |
public Property(IPropertyName name,
java.lang.String value)
throws ResourceException
name - The property namevalue - The property string value
public Property(IPropertyName name,
java.util.Date value)
throws ResourceException
name - The property namevalue - The property date value
public Property(IPropertyName name,
java.lang.Boolean value)
throws ResourceException
name - The property namevalue - The property boolean value
public Property(IPropertyName name,
java.lang.Integer value)
throws ResourceException
name - The property namevalue - The property integer value
public Property(IPropertyName name,
java.lang.Long value)
throws ResourceException
name - The property namevalue - The property long value
public Property(IPropertyName name,
XMLMarkup value)
throws ResourceException
name - The property namevalue - The property xml value
public Property(IPropertyName name,
PropertyType type,
java.util.List values)
throws ResourceException
name - The property nametype - The property data typevalues - A list of values. The list must contain suitable object
instances (String, Date, Integer, Long, Boolean, XMLMarkup) for the
specified property type.ResourceException - If the instance of the value does not match
the property type
public Property(IPropertyName name,
java.lang.Object value)
throws ResourceException
name - The property namevalue - The value objectResourceException - If the instance of the value parameter is not
allowed
public Property(IPropertyName name,
IPropertyDef def,
java.lang.String value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
java.util.Date value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
java.lang.Boolean value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
java.lang.Integer value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
java.lang.Long value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
XMLMarkup value)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
java.lang.Object value)
throws ResourceException
name - The property namedef - The property definitionvalue - The value objectResourceException - If the instance of the value parameter is not
allowed or does not matach the type
public Property(IPropertyName name,
IPropertyDef def,
java.util.List values)
throws ResourceException
name - The property namedef - The property definitionvalues - A list of values. The list must contain suitable object
instances (String, Date, Integer, Long, Boolean, XMLMarkup) for the
specified property type.ResourceException - If the instance of the value does not match
the property type
public Property(IPropertyName name,
java.lang.String value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property string valueattributes -
public Property(IPropertyName name,
java.util.Date value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property date valueattributes -
public Property(IPropertyName name,
java.lang.Boolean value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property booelan valueattributes -
public Property(IPropertyName name,
java.lang.Integer value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property integer value
public Property(IPropertyName name,
java.lang.Long value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property long value
public Property(IPropertyName name,
XMLMarkup value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The property xml value
public Property(IPropertyName name,
java.lang.Object value,
java.util.Properties attributes)
throws ResourceException
name - The property namevalue - The value objectattributes - ResourceException - If the instance of the value parameter is not
allowed
public Property(IPropertyName name,
PropertyType type,
java.util.List values,
java.util.Properties attributes)
throws ResourceException
name - The property nametype - The property data typevalues - A list of values. The list must contain suitable object
instances (String, Date, Integer, Long, Boolean, XMLMarkup) for the
specified property type.attributes - ResourceException - If the instance of the value does not match
the property type
public Property(IPropertyName name,
IPropertyDef def,
java.lang.String value,
java.util.Properties attributes)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
java.util.Date value,
java.util.Properties attributes)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
java.lang.Boolean value,
java.util.Properties attributes)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
java.lang.Integer value,
java.util.Properties attributes)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
java.lang.Long value,
java.util.Properties attributes)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
XMLMarkup value,
java.util.Properties attributes)
throws ResourceException
name - The property namedef - The property definitionvalue - The property string value
public Property(IPropertyName name,
IPropertyDef def,
java.lang.Object value,
java.util.Properties attributes)
throws ResourceException
name - The property namedef - The property definitionvalue - The value objectattributes - ResourceException - If the instance of the value parameter is not
allowed or does not matach the type
public Property(IPropertyName name,
IPropertyDef def,
java.util.List values,
java.util.Properties attributes)
throws ResourceException
name - The property namedef - The property definitionvalues - A list of values. The list must contain suitable object
instances (String, Date, Integer, Long, Boolean, XMLMarkup) for the
specified property type.attributes - ResourceException - If the instance of the value does not match
the property typeprotected Property(Property p)
p -
protected Property(IPropertyName name,
IPropertyDef def)
throws ResourceException
protected Property(IPropertyName name,
PropertyType type,
boolean isMultivalued)
throws ResourceException
| Method Detail |
public IPropertyName getPropertyName()
IPropertygetPropertyName in interface IPropertycom.sapportals.wcm.repository.IPropertypublic PropertyType getType()
IPropertygetType in interface IPropertycom.sapportals.wcm.repository.IPropertypublic boolean isMultivalued()
IPropertyisMultivalued in interface IPropertycom.sapportals.wcm.repository.IPropertypublic IPropertyDef getPropertyDef()
IPropertygetPropertyDef in interface IPropertycom.sapportals.wcm.repository.IPropertypublic java.lang.String getValueAsString()
IPropertygetValueAsString in interface IPropertycom.sapportals.wcm.repository.IPropertypublic boolean getBooleanValue()
IPropertygetBooleanValue in interface IPropertycom.sapportals.wcm.repository.IPropertypublic int getIntValue()
IPropertygetIntValue in interface IPropertycom.sapportals.wcm.repository.IPropertypublic long getLongIntValue()
IPropertygetLongIntValue in interface IPropertycom.sapportals.wcm.repository.IPropertypublic java.util.Date getDateValue()
IPropertygetDateValue in interface IPropertycom.sapportals.wcm.repository.IPropertypublic java.lang.String getStringValue()
IPropertygetStringValue in interface IPropertycom.sapportals.wcm.repository.IProperty
public java.util.List getValues()
throws ResourceException
IPropertygetValues in interface IPropertycom.sapportals.wcm.repository.IProperty
public java.lang.Object getValue()
throws ResourceException
IPropertygetValue in interface IPropertycom.sapportals.wcm.repository.IPropertypublic IMutableProperty getMutable()
IPropertygetMutable in interface IPropertycom.sapportals.wcm.repository.IProperty
public java.lang.String getAttribute(java.lang.String name)
throws ResourceException
IPropertygetAttribute in interface IPropertycom.sapportals.wcm.repository.IPropertyname - Attribute nameResourceException -
public java.util.Properties getAttributes()
throws ResourceException
IPropertygetAttributes in interface IPropertycom.sapportals.wcm.repository.IPropertyResourceException -
public java.lang.String getDescription()
throws WcmException
IPropertygetDescription in interface IPropertycom.sapportals.wcm.repository.IPropertyWcmException - Exception raised in failure situation
public java.lang.String getDescription(IResourceContext context)
throws WcmException
getDescription in interface IPropertypublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object prop)
equals in class java.lang.Object
protected void validateType(java.lang.Object v)
throws ResourceException
v - The value to set
public static boolean isSystemProperty(IPropertyName propName)
throws ResourceException
propName -
public static IProperty createCreatedByProp(java.lang.String value)
throws ResourceException
public static IProperty createLastModifiedByProp(java.lang.String value)
throws ResourceException
public static IProperty createCreationDateProp(java.util.Date date)
throws ResourceException
public static IProperty createHiddenProp(boolean value)
throws ResourceException
public static IProperty createLastModifiedProp(java.util.Date date)
throws ResourceException
public static IProperty createDescriptionProp(java.lang.String value)
throws ResourceException
public static IProperty createDisplaynameProp(java.lang.String value)
throws ResourceException
public static IProperty createReadOnlyProp(boolean value)
throws ResourceException
public static IProperty createContentLengthProp(long length)
throws ResourceException
public static IProperty createContentTypeProp(java.lang.String value)
throws ResourceException
public static IProperty createETagProp(java.lang.String value)
throws ResourceException
public static IProperty createContentLanguageProp(java.lang.String value)
throws ResourceException
public static IProperty createResourceTypeProp(java.lang.String value)
throws ResourceException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||