|
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.repository.service.appproperties.AppProperty
An application-defined property of a resource object in any repository.
Copyright (c) SAP AG 2001-2004
| Field Summary | |
protected boolean |
enableCopy
|
protected boolean |
isMultivalued
|
protected IPropertyName |
name
|
protected PropertyType |
type
|
protected java.lang.String |
userID
|
protected java.lang.Object |
value
|
protected java.util.List |
values
|
| Constructor Summary | |
AppProperty(IPropertyName name,
java.lang.Boolean value,
java.lang.String userID,
boolean enableCopy)
|
|
AppProperty(IPropertyName name,
java.util.Date value,
java.lang.String userID,
boolean enableCopy)
|
|
AppProperty(IPropertyName name,
java.lang.Integer value,
java.lang.String userID,
boolean enableCopy)
|
|
AppProperty(IPropertyName name,
java.lang.Long value,
java.lang.String userID,
boolean enableCopy)
|
|
AppProperty(IPropertyName name,
PropertyType type,
java.util.List values,
java.lang.String userID,
boolean enableCopy)
|
|
AppProperty(IPropertyName name,
java.lang.String value,
java.lang.String userID,
boolean enableCopy)
|
|
AppProperty(IPropertyName name,
XMLMarkup value,
java.lang.String userID,
boolean enableCopy)
|
|
| Method Summary | |
java.lang.Boolean |
getBooleanValue()
Get the property value if the type is PropertyType.BOOLEAN or null
otherwise. |
java.util.Date |
getDateValue()
Get the property value if the type is PropertyType.DATE or null
otherwise. |
java.lang.Integer |
getIntegerValue()
Get the property value if the type is PropertyType.INTEGER or null
otherwise. |
java.lang.Long |
getLongValue()
Get the property value if the type is PropertyType.LONG or null
otherwise. |
long |
getPropertyID()
|
IPropertyName |
getPropertyName()
Returns the property name |
java.lang.String |
getStringValue()
Get the property value if the type is PropertyType.STRING or PropertyType.XML, or null otherwise. |
PropertyType |
getType()
Returns the property data type |
java.lang.String |
getUserID()
Returns the user ID if the property is personalized, null otherwise |
java.lang.String |
getValueAsString()
Get the property value converted to a string. |
java.util.List |
getValues()
Returns a list of property values if the property is defined as multi-valued, null otherwise |
boolean |
isCopyEnabled()
Returns a flag indicating of the properties should be copied if copy() is called on the resource |
boolean |
isMultivalued()
Returns true if it is a multi-valued property |
void |
setPropertyID(long id)
|
java.lang.String |
toString()
|
protected void |
validateType(java.lang.Object v)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected IPropertyName name
protected java.lang.Object value
protected PropertyType type
protected java.lang.String userID
protected boolean enableCopy
protected boolean isMultivalued
protected java.util.List values
| Constructor Detail |
public AppProperty(IPropertyName name,
java.lang.String value,
java.lang.String userID,
boolean enableCopy)
throws WcmException
public AppProperty(IPropertyName name,
java.util.Date value,
java.lang.String userID,
boolean enableCopy)
throws WcmException
public AppProperty(IPropertyName name,
java.lang.Integer value,
java.lang.String userID,
boolean enableCopy)
throws WcmException
public AppProperty(IPropertyName name,
java.lang.Long value,
java.lang.String userID,
boolean enableCopy)
throws WcmException
public AppProperty(IPropertyName name,
java.lang.Boolean value,
java.lang.String userID,
boolean enableCopy)
throws WcmException
public AppProperty(IPropertyName name,
XMLMarkup value,
java.lang.String userID,
boolean enableCopy)
throws WcmException
public AppProperty(IPropertyName name,
PropertyType type,
java.util.List values,
java.lang.String userID,
boolean enableCopy)
throws WcmException
| Method Detail |
public IPropertyName getPropertyName()
IAppPropertygetPropertyName in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertypublic PropertyType getType()
IAppPropertygetType in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertypublic boolean isMultivalued()
IAppPropertyisMultivalued in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertypublic java.lang.String getUserID()
IAppPropertygetUserID in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertypublic java.lang.String getValueAsString()
IAppPropertygetValueAsString in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertypublic java.lang.Boolean getBooleanValue()
IAppPropertyPropertyType.BOOLEAN or null
otherwise.getBooleanValue in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertypublic java.lang.Integer getIntegerValue()
IAppPropertyPropertyType.INTEGER or null
otherwise.getIntegerValue in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertypublic java.lang.Long getLongValue()
IAppPropertyPropertyType.LONG or null
otherwise.getLongValue in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertypublic java.util.Date getDateValue()
IAppPropertyPropertyType.DATE or null
otherwise.getDateValue in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertypublic java.lang.String getStringValue()
IAppPropertyPropertyType.STRING or PropertyType.XML, or null otherwise.getStringValue in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppProperty
public java.util.List getValues()
throws WcmException
IAppPropertynull otherwisegetValues in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertyWcmException - Exception raised in failure situationpublic boolean isCopyEnabled()
IAppPropertyisCopyEnabled in interface IAppPropertycom.sapportals.wcm.repository.service.appproperties.IAppPropertypublic java.lang.String toString()
toString in class java.lang.Objectpublic void setPropertyID(long id)
public long getPropertyID()
protected void validateType(java.lang.Object v)
throws WcmException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||