org.apache.avalon.repository.impl
Class ArtifactSequenceParameter

java.lang.Object
  extended byorg.apache.avalon.util.criteria.Parameter
      extended byorg.apache.avalon.repository.impl.ArtifactSequenceParameter
All Implemented Interfaces:
Serializable

public class ArtifactSequenceParameter
extends org.apache.avalon.util.criteria.Parameter

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

Version:
$Revision: 1.1 $
Author:
Avalon Development Team
See Also:
Serialized Form

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

Constructor Detail

ArtifactSequenceParameter

public ArtifactSequenceParameter(String key,
                                 String delimiter,
                                 Artifact[] 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 org.apache.avalon.util.criteria.CriteriaException
Resolve a supplied string or string array to a artifact array value.

Parameters:
value - the value to resolve
Throws:
org.apache.avalon.util.criteria.CriteriaException - if an error occurs


Copyright © The Apache Software Foundation. All Rights Reserved.