com.arsdigita.util.parameter
Class ResourceParameter

java.lang.Object
  extended bycom.arsdigita.util.parameter.AbstractParameter
      extended bycom.arsdigita.util.parameter.StringParameter
          extended bycom.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>

Field Summary
static String versionId
          Deprecated.  
 
Fields inherited from interface com.arsdigita.util.parameter.Parameter
OPTIONAL, REQUIRED
 
Constructor Summary
ResourceParameter(String name)
          Deprecated.  
ResourceParameter(String name, int multiplicity, Object defaalt)
          Deprecated.  
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

ResourceParameter

public ResourceParameter(String name)
Deprecated. 

ResourceParameter

public ResourceParameter(String name,
                         int multiplicity,
                         Object defaalt)
Deprecated. 
Method Detail

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 null
errors - 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