| net.sf.jga.fn.string.ParseFormat
ParseFormat | public class ParseFormat extends UnaryFunctor (Code) | | Unary Functor that parses a given Format.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Inner Class :public static class Date extends ParseFormat | |
Inner Class :public static class Number extends ParseFormat | |
Constructor Summary | |
protected | ParseFormat(Format format, UnaryFunctor<Object, R> conv) Builds the ParseFormat given a text Format and a functor that can convert
Objects returned by the Format's parse(Object) method and the desired
type of this functor. |
serialVersionUID | final static long serialVersionUID(Code) | | |
ParseFormat | protected ParseFormat(Format format, UnaryFunctor<Object, R> conv)(Code) | | Builds the ParseFormat given a text Format and a functor that can convert
Objects returned by the Format's parse(Object) method and the desired
type of this functor.
|
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(ParseFormat) method, if it
implements the nested Visitor interface.
|
fn | public R fn(String arg)(Code) | | Parses the value from the given string, using the java.text.Format object
passed at construction.
Parameters: arg - formatted string to be parsed throws: java.text.ParseException - when the string cannot be parsed to thecorrect type the value that the string represented |
getFormat | public Format getFormat()(Code) | | the format used to parse values |
|
|