|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jplate.foundation.parser.impl.AbstractJPlateListBuilder<V>
V
- The value type that will be stored in a List
.public abstract class AbstractJPlateListBuilder<V>
Abstract JPlate builder of List
's. Please note:
getResult()
returns an unmodifiable list. Additionally, subclasses
are left to figure out what buildEnd()
does as a builder may be
building information that will need to be processes at the end of a parse.
Modifications: $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $ $Revision: 479 $ $Author: sfloess $ $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/foundation/parser/impl/AbstractJPlateListBuilder.java $
Field Summary | |
---|---|
private org.apache.commons.logging.Log |
_log
Used for logging. |
private java.util.List<V> |
_resultList
The list to hold KVP objects parsed. |
Constructor Summary | |
---|---|
AbstractJPlateListBuilder()
Default constructor. |
|
AbstractJPlateListBuilder(ListFactoryIfc<V> listFactory)
This constructor sets the factory used to hold the collection of V 's. |
Method Summary | |
---|---|
void |
buildStart()
This method is called when parsing is to begin. |
protected java.util.List<V> |
getActualResultList()
This method returns the actual result and is available to subclasses. |
java.util.List<V> |
getResult()
Return the built object. |
void |
reset()
Reset any result currently held. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jplate.foundation.parser.JPlateBuilderIfc |
---|
buildEnd |
Field Detail |
---|
private final transient org.apache.commons.logging.Log _log
private final java.util.List<V> _resultList
Constructor Detail |
---|
public AbstractJPlateListBuilder(ListFactoryIfc<V> listFactory)
V
's.
listFactory
- Factory to create a list that will be used to hold the
implementations V
public AbstractJPlateListBuilder()
UnsynchronizedLinkedListFactory
to
create the list to hold the result.
Method Detail |
---|
public java.util.List<V> getResult()
getResult
in interface BuilderIfc<java.util.List<V>>
public void reset()
reset
in interface BuilderIfc<java.util.List<V>>
public void buildStart() throws JPlateBuildingException
buildStart
in interface JPlateBuilderIfc<java.util.List<V>>
JPlateBuildingException
protected java.util.List<V> getActualResultList()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |