public abstract class ListParameterParser extends AbstractParameterParser
locale
Modifier | Constructor and Description |
---|---|
protected |
ListParameterParser()
Default constructor.
|
protected |
ListParameterParser(Locale locale)
Constructs a new parser using the given locale.
|
Modifier and Type | Method and Description |
---|---|
Serializable |
parse(String tokens,
Constraints constraints,
Parameters soFar)
Returns a non-null List of objects if the parsing of the given tokens
string was succesful and if each of the list item objects complied with
the specified constraints, if any were specified.
|
protected abstract Serializable |
parseItem(String token,
Constraints constraints,
Parameters soFar)
Returns the parsed object corresponding to the given list item.
|
getLocale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse
getTypeToken
protected ListParameterParser()
protected ListParameterParser(Locale locale)
locale
- Locale to associate with this parser.protected abstract Serializable parseItem(String token, Constraints constraints, Parameters soFar)
Constraints.isValid(java.io.Serializable)
as this is performed by parse(java.lang.String, com.hp.util.syntax.parsers.Constraints, com.hp.util.syntax.Parameters)
method.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.public Serializable parse(String tokens, Constraints constraints, Parameters soFar)
tokens
- 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.ArrayList
of Serializable
entities if the parsing was successful; returns null otherwise.ParameterParser.parse(java.lang.String, com.hp.util.syntax.parsers.Constraints, com.hp.util.syntax.Parameters)
Copyright © 2016. All Rights Reserved.