org.apache.avalon.util.criteria
Class PackedParameter

java.lang.Object
  extended byorg.apache.avalon.util.criteria.Parameter
      extended byorg.apache.avalon.util.criteria.PackedParameter

public class PackedParameter
extends Parameter

A parameter descriptor that supports transformation of a a string to a string array based on a supplied token.

Version:
$Revision: 1.2 $
Author:
Stephen McConnell

Constructor Summary
PackedParameter(String key, String delimiter, String[] defaults)
          Transform a string to a string array.
 
Method Summary
 Object resolve(Object value)
          Resolve a supplied string or string array to a sttring array value.
 
Methods inherited from class org.apache.avalon.util.criteria.Parameter
getDefault, getKey, getKeys, getParameterClass, isOptional, isRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackedParameter

public PackedParameter(String key,
                       String delimiter,
                       String[] defaults)
Transform a string to a string array.

Parameters:
key - the parameter key
delimiter - the delimiter character
defaults - the default string array
Method Detail

resolve

public Object resolve(Object value)
               throws CriteriaException
Resolve a supplied string or string array to a sttring array value.

Overrides:
resolve in class Parameter
Parameters:
value - the value to resolve
Returns:
the resolved object
Throws:
CriteriaException - if an error occurs


Copyright © Apache Software Foundation. All Rights Reserved.