|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.composite.extract.extractors.BaseComponentAccessor
public abstract class BaseComponentAccessor
A convenient base class for component extractors. This base class takes care of exception handling, argument validation and logging.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
BaseComponentAccessor()
|
|
| Method Summary | |
|---|---|
java.util.List |
getComponents(java.lang.Object composite)
Extracts the components from a composite. |
protected abstract java.util.List |
getComponentsImpl(java.lang.Object composite)
Implementation of ComponentAccessor.getComponents(Object). |
void |
setComponents(java.lang.Object composite,
java.util.List components)
Sets the components in a composite. |
protected abstract void |
setComponentsImpl(java.lang.Object composite,
java.util.List components)
Implementation of ComponentAccessor#setComponents(SimpleComposite, Object[]). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public BaseComponentAccessor()
| Method Detail |
|---|
protected abstract java.util.List getComponentsImpl(java.lang.Object composite)
throws java.lang.Exception
ComponentAccessor.getComponents(Object).
composite - the composite from which the components will be extracted
java.lang.Exception - if the components could not be extracted for some reasonpublic final java.util.List getComponents(java.lang.Object composite)
ComponentAccessor
getComponents in interface ComponentAccessorcomposite - the composite from which the components will be extracted
protected abstract void setComponentsImpl(java.lang.Object composite,
java.util.List components)
throws java.lang.Exception
ComponentAccessor#setComponents(SimpleComposite, Object[]).
composite - the composite for which the components will be setcomponents - the components
java.lang.Exception - if the components could not be set for some reason
public final void setComponents(java.lang.Object composite,
java.util.List components)
throws ComponentAccessorException
ComponentAccessor
setComponents in interface ComponentAccessorcomposite - the composite for which the components will be setcomponents - the components
ComponentAccessorException - if the components could not be set for some reason
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||