Package | Description |
---|---|
com.hp.util.syntax |
Collection of facilities to translate a set of command-line arguments into amap of name-to-object bindings, using an XML-encoded set of syntaxdefinitions.
|
com.hp.util.syntax.parsers |
Set of interfaces and several built-in implementations for parsers andconstraints which define a framework for extension of the command-line parsingframework.
|
Modifier and Type | Method and Description |
---|---|
Constraints |
SyntaxParameter.getConstraints()
Get the constraints object associated with this parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
SyntaxParameter.setConstraints(Constraints constraints)
Returns the constraints object associated with this parameter.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ListConstraints
Interface defining a set of constraints and hints for parsing list
parameter values.
|
Modifier and Type | Class and Description |
---|---|
class |
BooleanConstraints
Builtin constraint validator for a boolean value.
|
class |
DateConstraints
Builtin constraint validator for a date & time value.
|
class |
DateListConstraints
Builtin constraints validator for a list of date & time values.
|
class |
FileConstraints
Builtin constraint validator for a file value.
|
class |
NameValueConstraints
Builtin constraints validator for a name/value pair object.
|
class |
NumberConstraints
Builtin constraint validator for a number value.
|
class |
NumberListConstraints
Builtin constraints validator for a list of number values.
|
class |
StringConstraints
Builtin constraints validator for a string value.
|
class |
StringListConstraints
Builtin constraints validator for a list of string values.
|
Modifier and Type | Field and Description |
---|---|
protected Constraints |
NameValueConstraints.valueConstraints |
Modifier and Type | Method and Description |
---|---|
Constraints |
NameValueConstraints.getValueConstraints() |
Constraints |
NumberParameterParser.parse(Properties db,
TokenTranslator tr,
ParserLoader parserLoader)
Creates an instance of
NumberConstraints . |
Constraints |
NameValueParameterParser.parse(Properties db,
TokenTranslator tr,
ParserLoader parserLoader)
Creates an instance of
NameValueConstraints . |
Constraints |
StringParameterParser.parse(Properties db,
TokenTranslator tr,
ParserLoader parserLoader)
Creates an instance of
StringConstraints . |
Constraints |
BooleanParameterParser.parse(Properties db,
TokenTranslator tr,
ParserLoader parserLoader)
Creates as an instance of
BooleanConstraints . |
Constraints |
DateListParameterParser.parse(Properties db,
TokenTranslator tr,
ParserLoader parserLoader)
Returns an object describing particular constraints as defined in the
specified property database.
|
Constraints |
FileParameterParser.parse(Properties db,
TokenTranslator tr,
ParserLoader parserLoader)
Creates an instance of
FileConstraints . |
Constraints |
DateParameterParser.parse(Properties db,
TokenTranslator tr,
ParserLoader parserLoader)
Creates an instance of
DateConstraints . |
Constraints |
NumberListParameterParser.parse(Properties db,
TokenTranslator tr,
ParserLoader parserLoader)
Returns an object describing particular constraints as defined in the
specified property database.
|
Constraints |
StringListParameterParser.parse(Properties db,
TokenTranslator tr,
ParserLoader parserLoader)
Returns an object describing particular constraints as defined in the
specified property database.
|
Constraints |
ConstraintsParser.parse(Properties db,
TokenTranslator translator,
ParserLoader parserLoader)
Returns an object describing particular constraints as defined
in the specified property database.
|
Modifier and Type | Method and Description |
---|---|
Serializable |
NumberParameterParser.parse(String token,
Constraints constraints,
Parameters soFar)
Returns a non-null object if the parsing of the given token was
succesful and if the object value complied with the specified
constraints, if any were specified.
|
Serializable |
NameValueParameterParser.parse(String token,
Constraints constraints,
Parameters soFar)
Returns a non-null object if the parsing of the given token was
succesful and if the object value complied with the specified
constraints, if any were specified.
|
Serializable |
StringParameterParser.parse(String token,
Constraints constraints,
Parameters soFar)
Returns a non-null object if the parsing of the given token was
succesful and if the object value complied with the specified
constraints, if any were specified.
|
Serializable |
ListParameterParser.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.
|
Serializable |
BooleanParameterParser.parse(String token,
Constraints constraints,
Parameters parameters)
Returns a non-null object if the parsing of the given token was
succesful and if the object value complied with the specified
constraints, if any were specified.
|
Serializable |
FileParameterParser.parse(String token,
Constraints constraints,
Parameters soFar)
Returns a non-null object if the parsing of the given token was
succesful and if the object value complied with the specified
constraints, if any were specified.
|
Serializable |
DateParameterParser.parse(String token,
Constraints constraints,
Parameters soFar)
Returns a non-null object if the parsing of the given token was
succesful and if the object value complied with the specified
constraints, if any were specified.
|
Serializable |
ParameterParser.parse(String token,
Constraints constraints,
Parameters soFar)
Returns a non-null object if the parsing of the given token was
succesful and if the object value complied with the specified
constraints, if any were specified.
|
protected abstract Serializable |
ListParameterParser.parseItem(String token,
Constraints constraints,
Parameters soFar)
Returns the parsed object corresponding to the given list item.
|
Serializable |
DateListParameterParser.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. |
Serializable |
NumberListParameterParser.parseItem(String token,
Constraints constraints,
Parameters soFar)
Returns the parsed object corresponding to the given list item, which
in this case is a
Number instance represented by the token. |
Serializable |
StringListParameterParser.parseItem(String token,
Constraints constraints,
Parameters soFar)
Returns the parsed object corresponding to the given list item, which
in this case is the token itself.
|
Constructor and Description |
---|
NameValueConstraints(StringConstraints nameConstraints,
ParameterParser valueParser,
Constraints valueConstraints,
String separator)
Creates a name/value pair constraints enforcement entity.
|
Copyright © 2015. All Rights Reserved.