org.apache.myfaces.extensions.validator.core.metadata.transformer
Interface MetaDataTransformer

All Known Subinterfaces:
BeanMetaDataTransformerAdapter
All Known Implementing Classes:
BeanMetaDataTransformerAdapterImpl

public interface MetaDataTransformer

MetaDataTransformers are used to convert specific information of constraints to a generic representation. So it's possible to transform different meta-data implementations to an independent representation. E.g. @Length and @Size specifies the same information. MetaDataTransformers are aware of the concrete meta-data implementation but they aren't aware of JSF components. The result of the transformation is used by ComponentInitializers to initialize JSF components based on the found meta-data. CommonMetaDataKeys provides the keys used by ExtVal.

Since:
1.x.1
Author:
Gerhard Petracek

Method Summary
 Map<String,Object> convertMetaData(MetaDataEntry metaData)
          Converts the information of a MetaDataEntry into an independent format.
 

Method Detail

convertMetaData

Map<String,Object> convertMetaData(MetaDataEntry metaData)
Converts the information of a MetaDataEntry into an independent format.

Parameters:
metaData - The meta-data which should be converted.
Returns:
Map with the converted information.


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.