com.arsdigita.util.parameter
Class SingletonParameter
java.lang.Object
com.arsdigita.util.parameter.AbstractParameter
com.arsdigita.util.parameter.ClassParameter
com.arsdigita.util.parameter.SingletonParameter
- All Implemented Interfaces:
- Parameter
- public class SingletonParameter
- extends ClassParameter
Subject to change.
A parameter representing an instance of a Java class.
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/util/parameter/SingletonParameter.java#6 $
- Author:
- Justin Ross <jross@redhat.com>
- See Also:
Parameter
Method Summary |
protected String |
marshal(Object value)
Converts value to a representative
String , which is returned. |
protected Object |
unmarshal(String value,
ErrorList errors)
Converts a literal String value,
value , to a Java object, which is returned. |
Methods inherited from class com.arsdigita.util.parameter.AbstractParameter |
doRead, doValidate, doWrite, getDefaultValue, getInfo, getName, isRequired, read, setInfo, toString, validate, write |
versionId
public static final String versionId
- See Also:
- Constant Field Values
SingletonParameter
public SingletonParameter(String name)
SingletonParameter
public SingletonParameter(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 ClassParameter
unmarshal
protected Object unmarshal(String value,
ErrorList errors)
- Description copied from class:
AbstractParameter
- Converts a literal
String
value,
value
, to a Java object, which is returned.
- Overrides:
unmarshal
in class ClassParameter
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC