|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jplate.foundation.parser.impl.AbstractJPlateMapBuilder<K,V>
K - The key type stored in the @{link Map}.V - The value type stored in the @{link Map}.public abstract class AbstractJPlateMapBuilder<K,V>
Abstract JPlate builder of Map's. Please note:
getResult() returns an unmodifiable map. Additionally, subclasses
are left to figure out what JPlateBuilderIfc.buildEnd(int, int) 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/AbstractJPlateMapBuilder.java $
| Field Summary | |
|---|---|
private org.apache.commons.logging.Log |
_log
Used for logging. |
private java.util.Map<K,V> |
_mapResult
Holds the result. |
| Constructor Summary | |
|---|---|
AbstractJPlateMapBuilder()
Default constructor. |
|
AbstractJPlateMapBuilder(MapFactoryIfc<K,V> mapFactory)
This constructor sets the map factory that is use to hold name/value pairs. |
|
| Method Summary | |
|---|---|
void |
buildStart()
This method is called when parsing is to begin. |
protected java.util.Map<K,V> |
getActualResultMap()
This method returns the actual result and is available to subclasses. |
java.util.Map<K,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 java.util.Map<K,V> _mapResult
private final transient org.apache.commons.logging.Log _log
| Constructor Detail |
|---|
public AbstractJPlateMapBuilder(MapFactoryIfc<K,V> mapFactory)
mapFactory - Factory to create a map that will be used to hold the
name/value pairs.public AbstractJPlateMapBuilder()
UnsynchronizedHashMapFactory.
| Method Detail |
|---|
public java.util.Map<K,V> getResult()
getResult in interface BuilderIfc<java.util.Map<K,V>>public void reset()
reset in interface BuilderIfc<java.util.Map<K,V>>
public void buildStart()
throws JPlateBuildingException
buildStart in interface JPlateBuilderIfc<java.util.Map<K,V>>JPlateBuildingExceptionprotected java.util.Map<K,V> getActualResultMap()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||