net.sf.composite.extract.extractors
Class ContainerPropertyComponentAccessor

java.lang.Object
  extended by net.sf.composite.extract.extractors.BaseComponentAccessor
      extended by net.sf.composite.extract.extractors.BasePropertyComponentAccessor
          extended by net.sf.composite.extract.extractors.ContainerPropertyComponentAccessor
All Implemented Interfaces:
ComponentAccessor

public class ContainerPropertyComponentAccessor
extends BasePropertyComponentAccessor

Extracts the components from a composite that stores its components as an array or Collection. Can set the components of arrays, Lists and Sets.

Since:
Mar 11, 2005
Author:
Matt Sgarlata

Field Summary
 
Fields inherited from class net.sf.composite.extract.extractors.BaseComponentAccessor
log
 
Constructor Summary
ContainerPropertyComponentAccessor()
           
 
Method Summary
protected  java.util.List getComponentsImpl(java.lang.Object composite)
          Implementation of ComponentAccessor.getComponents(Object).
protected  void setComponentsImpl(java.lang.Object composite, java.util.List components)
          Implementation of ComponentAccessor#setComponents(SimpleComposite, Object[]).
 
Methods inherited from class net.sf.composite.extract.extractors.BasePropertyComponentAccessor
getComponentProperty, getType, invokeGetter, invokeSetter, setComponentProperty
 
Methods inherited from class net.sf.composite.extract.extractors.BaseComponentAccessor
getComponents, setComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerPropertyComponentAccessor

public ContainerPropertyComponentAccessor()
Method Detail

getComponentsImpl

protected java.util.List getComponentsImpl(java.lang.Object composite)
                                    throws java.lang.Exception
Description copied from class: BaseComponentAccessor
Implementation of ComponentAccessor.getComponents(Object).

Specified by:
getComponentsImpl in class BaseComponentAccessor
Parameters:
composite - the composite from which the components will be extracted
Returns:
the components
Throws:
java.lang.Exception - if the components could not be extracted for some reason

setComponentsImpl

protected void setComponentsImpl(java.lang.Object composite,
                                 java.util.List components)
                          throws java.lang.Exception
Description copied from class: BaseComponentAccessor
Implementation of ComponentAccessor#setComponents(SimpleComposite, Object[]).

Specified by:
setComponentsImpl in class BaseComponentAccessor
Parameters:
composite - the composite for which the components will be set
components - the components
Throws:
java.lang.Exception - if the components could not be set for some reason


Copyright © 2005-2008.