net.sf.japaki.kit
Class CollectionParserMold<V extends Collection<E>,E>
java.lang.Object
net.sf.japaki.kit.SuperParserMold<V,SinglePropertyBean<E>,SinglePropertyBean<E>>
net.sf.japaki.kit.CollectionParserMold<V,E>
public class CollectionParserMold<V extends Collection<E>,E>
- extends SuperParserMold<V,SinglePropertyBean<E>,SinglePropertyBean<E>>
Parser mold for collections.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionParserMold
public CollectionParserMold(Class<V> targetType,
Factory<? extends V> factory)
- Constructs a collection parser mold from the given arguments.
- Parameters:
targetType
- the target type of the parsers created by this moldfactory
- a factory that creates new collections
newInstance
public static <V extends Collection<Object>> CollectionParserMold<V,Object> newInstance(Class<V> targetType)
- Constructs a collection parser mold from the given arguments.
- Parameters:
targetType
- the target type of the parsers created by this mold
- Returns:
- the new collection mold
createMold
public ParserMold<V> createMold(Parser<SinglePropertyBean<E>> parser,
Parser<Object> delParser)
- Description copied from class:
SuperParserMold
- Creates a new parser mold.
- Specified by:
createMold
in class SuperParserMold<V extends Collection<E>,SinglePropertyBean<E>,SinglePropertyBean<E>>
- Parameters:
parser
- sub- or element parserdelParser
- delimiter parser
- Returns:
- the new mold
- Throws:
NullPointerException
- if parser is null