org.apache.myfaces.orchestra.dynaForm.metadata.impl.jsf
Class AbstractJsfExtractor

java.lang.Object
  extended by org.apache.myfaces.orchestra.dynaForm.metadata.impl.jsf.AbstractJsfExtractor
All Implemented Interfaces:
Extractor
Direct Known Subclasses:
JsfExclusiveExtractor, JsfExtractor

public abstract class AbstractJsfExtractor
extends Object
implements Extractor

Extract metadata from a DynaForm UIComponent.

This looks for child DynaConfig components attached to the DynaForm and merges any overrides they declare with the current values of a MetaData object. This allows basic information about an entity to be determined by other means, then for any components attached to the DynaForm component to override those settings.


Constructor Summary
AbstractJsfExtractor()
           
 
Method Summary
protected  void create(MetaDataWritable metaData, DynaForm dynaForm)
          create the metadata out of the dynaConfigs for the given component
 void getMetaData(MetaDataWritable metaData, Object entity)
          Copy metadata overrides attached to a DynaForm UIComponent into an existing MetaData instance.
protected abstract  void initFromConfig(MetaFieldWritable field, DynaConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJsfExtractor

public AbstractJsfExtractor()
Method Detail

getMetaData

public void getMetaData(MetaDataWritable metaData,
                        Object entity)
Copy metadata overrides attached to a DynaForm UIComponent into an existing MetaData instance.

The specified entity must be an instance of DynaForm (a JSF UIComponent).

Specified by:
getMetaData in interface Extractor

create

protected void create(MetaDataWritable metaData,
                      DynaForm dynaForm)
create the metadata out of the dynaConfigs for the given component


initFromConfig

protected abstract void initFromConfig(MetaFieldWritable field,
                                       DynaConfig config)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.