net.sf.japaki.kit
Class FixedFormatMold<V>

java.lang.Object
  extended by net.sf.japaki.kit.LeafParserMold<V>
      extended by net.sf.japaki.kit.FixedFormatMold<V>
All Implemented Interfaces:
ParserMold<V>

public class FixedFormatMold<V>
extends LeafParserMold<V>

Parser mold based on a constant format.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sf.japaki.kit.ParserMold
ParserMold.Parameter
 
Constructor Summary
FixedFormatMold(Class<V> targetType, Format format)
          Constructs a new fixed format mold.
 
Method Summary
protected  Format getFormat(String pattern)
          Not implemented.
 
Methods inherited from class net.sf.japaki.kit.LeafParserMold
getErrorMessage, getFormat, getName, getParser, getTargetType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedFormatMold

public FixedFormatMold(Class<V> targetType,
                       Format format)
Constructs a new fixed format mold.

Parameters:
targetType - the target type of the parsers created by this mold
format - the format of the created leaf parsers
Throws:
NullPointerException - if targetType is null.
Method Detail

getFormat

protected Format getFormat(String pattern)
Not implemented.

Specified by:
getFormat in class LeafParserMold<V>
Parameters:
pattern - ignored
Returns:
format of the parser to be created
Throws:
IllegalArgumentException - always