|
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.service.propertyconfig.metadataextension.DefaultMetadataExtension
Default implementation of a metadata extension.
| Field Summary | |
protected IMetaModel |
model
|
| Constructor Summary | |
DefaultMetadataExtension(IMetaModel model)
|
|
| Method Summary | |
IMetaValueList |
getAllowedValues(IMetaName metaName)
Returns allowed values depending on the meta name. |
IMetaValueList |
getAllowedValues(IMetaName metaName,
IMetaContext metaContext)
Returns allowed values depending on the meta name. |
IMetaValue |
getDefaultValue(IMetaName metaName)
Returns a default value depending on the meta name. |
java.lang.String |
getErrorMessage(java.lang.String errorID,
IMetaNameList metaNames,
java.util.Locale locale)
Deprecated. since EP6 SP2 FP, use getErrorMessage(String,IMetaNameList,Locale,Map) |
java.lang.String |
getErrorMessage(java.lang.String errorID,
IMetaNameList metaNames,
java.util.Locale locale,
java.util.Map additionalInfo)
|
java.lang.String |
getPropertyDescription(IMetaName metaName,
java.util.Locale locale)
Gets a description for a property depending on the input locale. |
java.lang.String |
getPropertyLabel(IMetaName metaName,
java.util.Locale locale)
Gets a label for the property name depending on the input locale. |
java.lang.String |
getValidationInstanceID()
The validation instance ID is used as a namespace for the error IDs the are returned. |
java.lang.String |
getValueLabel(IMetaValue metaValue,
java.util.Locale locale)
Gets a label for a property value depending on the input locale. |
IMetaValue |
searchMetaValue(java.lang.String value)
Returns a meta value by its ID (property value ID). |
IValidationErrorList |
validate(IMetaName metaName,
IProperty property,
IMetaContext metaContext)
Validation of properties via predefined validation classes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IMetaModel model
| Constructor Detail |
public DefaultMetadataExtension(IMetaModel model)
model - meta model| Method Detail |
public IMetaValueList getAllowedValues(IMetaName metaName)
throws PropertyConfigurationServiceException
getAllowedValues in interface IDynamicValuesmetaName - meta model information of a property
public IMetaValueList getAllowedValues(IMetaName metaName,
IMetaContext metaContext)
throws PropertyConfigurationServiceException
getAllowedValues in interface IDynamicValuesmetaName - meta model information of a propertymetaContext - context information
public java.lang.String getValueLabel(IMetaValue metaValue,
java.util.Locale locale)
throws PropertyConfigurationServiceException
getValueLabel in interface IDynamicValuesmetaValue - metaValue for that a label is requestedlocale - locale to determine the lable languagepublic IMetaValue getDefaultValue(IMetaName metaName)
getDefaultValue in interface IDynamicValuesmetaName - meta model information of a property
public java.lang.String getPropertyLabel(IMetaName metaName,
java.util.Locale locale)
throws PropertyConfigurationServiceException
getPropertyLabel in interface IDynamicValuesmetaName - meta name for that the label is requestedlocale - locale to determine the lable language
public java.lang.String getPropertyDescription(IMetaName metaName,
java.util.Locale locale)
throws PropertyConfigurationServiceException
getPropertyDescription in interface IDynamicValuesmetaName - meta name for that the description is requestedlocale - locale to determine the description language
public IValidationErrorList validate(IMetaName metaName,
IProperty property,
IMetaContext metaContext)
throws PropertyConfigurationServiceException
validate in interface IValidationmetaName - meta model information of a propertyproperty - property to validatemetaContext - context information
public java.lang.String getErrorMessage(java.lang.String errorID,
IMetaNameList metaNames,
java.util.Locale locale)
throws PropertyConfigurationServiceException
getErrorMessage in interface IValidationerrorID - validation error IDmetaNames - list of meta names that caused the errorlocale - locale to determine the message languagepublic java.lang.String getValidationInstanceID()
getValidationInstanceID in interface IValidation
public IMetaValue searchMetaValue(java.lang.String value)
throws PropertyConfigurationServiceException
null if the value provider doesn't know the property value.searchMetaValue in interface IDynamicValuesvalue - property value
public java.lang.String getErrorMessage(java.lang.String errorID,
IMetaNameList metaNames,
java.util.Locale locale,
java.util.Map additionalInfo)
throws PropertyConfigurationServiceException
getErrorMessage in interface IValidationerrorID - validation error IDmetaNames - list of meta names that caused the errorlocale - locale to determine the message languageadditionalInfo - map with additional information about the error; can be null
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||