it.amattioli.encapsulate.dates.format
Class Parser

Show UML class diagram
java.lang.Object
  extended by it.amattioli.encapsulate.dates.format.Parser
Direct Known Subclasses:
AlphabeticalDayParser, AlphabeticalMonthParser, DayParser, IntervalParser, MonthParser, SingleNumberParser

public abstract class Parser
extends Object


Constructor Summary
Parser(Locale locale, Parser nextInChain)
           
 
Method Summary
static Parser create()
           
static Parser create(Locale locale)
           
static Parser create(Locale locale, TimeInterval otherSide)
           
 Locale getLocale()
           
 TimeInterval parse(String s)
           
 void setLocale(Locale locale)
           
 void setNextInChain(Parser nextInChain)
           
abstract  TimeInterval tryParse(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(Locale locale,
              Parser nextInChain)
Method Detail

create

public static Parser create()

create

public static Parser create(Locale locale)

create

public static Parser create(Locale locale,
                            TimeInterval otherSide)

getLocale

public Locale getLocale()

setLocale

public void setLocale(Locale locale)

setNextInChain

public void setNextInChain(Parser nextInChain)

parse

public TimeInterval parse(String s)
                   throws ParseException
Throws:
ParseException

tryParse

public abstract TimeInterval tryParse(String s)
                               throws ParseException
Throws:
ParseException


Copyright © 2011. All Rights Reserved.