com.arsdigita.util.parameter
Class StringArrayParameter
java.lang.Object
com.arsdigita.util.parameter.AbstractParameter
com.arsdigita.util.parameter.StringParameter
com.arsdigita.util.parameter.StringArrayParameter
- All Implemented Interfaces:
- Parameter
- public class StringArrayParameter
- extends StringParameter
StringArrayParameter
Methods inherited from class com.arsdigita.util.parameter.AbstractParameter |
doRead, doWrite, getDefaultValue, getInfo, getName, isRequired, read, setInfo, toString, validate, write |
StringArrayParameter
public StringArrayParameter(String name,
int multiplicity,
Object defaalt)
marshal
protected String marshal(Object value)
- Description copied from class:
AbstractParameter
- Converts
value
to a representative
String
, which is returned.
- Overrides:
marshal
in class AbstractParameter
- Parameters:
value
- The value to marshal; it may be null
- Returns:
- The
String
literal representation of
value
; it may be null
unmarshal
protected Object unmarshal(String literal,
ErrorList errors)
- Description copied from class:
AbstractParameter
- Converts a literal
String
value,
value
, to a Java object, which is returned.
- Overrides:
unmarshal
in class AbstractParameter
- Parameters:
literal
- The String
value to convert from; it
cannot be nullerrors
- An ErrorList
that holds any errors
encountered during unmarshaling; it cannot be null
doValidate
protected void doValidate(Object value,
ErrorList errors)
- Description copied from class:
AbstractParameter
- Validates
value
, placing any validation errors in
errors
. This particular implementation does
nothing. Subclasses are expected to add specific validation
behaviors.
- Overrides:
doValidate
in class AbstractParameter
- Parameters:
value
- The value to validate; it cannot be nullerrors
- The ErrorList
that traps validation
errors; it cannot be null
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC