com.arsdigita.util.parameter
Class ResourceParameter
java.lang.Object
com.arsdigita.util.parameter.AbstractParameter
com.arsdigita.util.parameter.StringParameter
com.arsdigita.util.parameter.ResourceParameter
- All Implemented Interfaces:
- Parameter
Deprecated. Use URLParameter
instead.
- public class ResourceParameter
- extends StringParameter
This takes in a path and makes sure that the resource exists either
as a File or an actual resource. If it does, it returns the
InputStream for the given Resource. If it does not, and if it is
required, it logs an error. Otherwise, it returns null.
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/util/parameter/ResourceParameter.java#5 $
- Author:
- Justin Ross <jross@redhat.com>
Method Summary |
protected Object |
unmarshal(String value,
ErrorList errors)
Deprecated. 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, marshal, read, setInfo, toString, validate, write |
versionId
public static final String versionId
- Deprecated.
- See Also:
- Constant Field Values
ResourceParameter
public ResourceParameter(String name)
- Deprecated.
ResourceParameter
public ResourceParameter(String name,
int multiplicity,
Object defaalt)
- Deprecated.
unmarshal
protected Object unmarshal(String value,
ErrorList errors)
- Deprecated.
- Description copied from class:
AbstractParameter
- Converts a literal
String
value,
value
, to a Java object, which is returned.
- Overrides:
unmarshal
in class AbstractParameter
- Parameters:
value
- The String
value to convert from; it
cannot be nullerrors
- An ErrorList
that holds any errors
encountered during unmarshaling; it cannot be null
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC