public class DateListParameterParser extends ListParameterParser
locale
Constructor and Description |
---|
DateListParameterParser()
Default constructor.
|
DateListParameterParser(Locale locale)
Constructs a new string parameter parser using the given locale.
|
Modifier and Type | Method and Description |
---|---|
String |
getTypeToken()
Returns the string which serves as a value type token for parameters of
this type.
|
Constraints |
parse(Properties db,
TokenTranslator tr,
ParserLoader parserLoader)
Returns an object describing particular constraints as defined in the
specified property database.
|
Serializable |
parseItem(String token,
Constraints constraints,
Parameters soFar)
Returns the parsed object corresponding to the given list item, which
in this case is a
Date instance represented by the
token. |
parse
getLocale
public DateListParameterParser()
public DateListParameterParser(Locale locale)
locale
- Locale to associate with this parser.public String getTypeToken()
TypedParser
TypedParser.getTypeToken()
public Constraints parse(Properties db, TokenTranslator tr, ParserLoader parserLoader)
db
- Set of properties that can be used to parametrize the
constraints implementation.tr
- A token translator that can be used for
locale-specific or other types of value translation.parserLoader
- Reference to the parameter and constraints parser loader.DateListConstraints
instance created using the
specified properties.ConstraintsParser.parse(java.util.Properties, com.hp.util.format.TokenTranslator, com.hp.util.syntax.ParserLoader)
public Serializable parseItem(String token, Constraints constraints, Parameters soFar)
Date
instance represented by the
token.parseItem
in class ListParameterParser
token
- String to be decoded/parsed into a Serializable entity.constraints
- Constraints & hints to use for parsing
and for validating the resulting Serializable.soFar
- Parameters accumulated by the parsing process thus far.ListParameterParser.parseItem(java.lang.String, com.hp.util.syntax.parsers.Constraints, com.hp.util.syntax.Parameters)
Copyright © 2016. All Rights Reserved.