org.apache.avalon.repository.impl
Class ArtifactSequenceParameter
java.lang.Object
org.apache.avalon.util.criteria.Parameter
org.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
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 |
ArtifactSequenceParameter
public ArtifactSequenceParameter(String key,
String delimiter,
Artifact[] defaults)
- Transform a string to a string array.
- Parameters:
key
- the parameter keydelimiter
- the delimiter characterdefaults
- the default string array
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.