donaldp 2002/10/01 16:32:19
Added: info/src/java/org/apache/avalon/framework/info
ParameterDescriptor.java
Log:
Add in a descriptor for a parameter
Revision Changes Path
1.1
jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/info/ParameterDescriptor.java
Index: ParameterDescriptor.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.framework.info;
import java.io.Serializable;
/**
* A descriptor that describes a parameter of a Method.
* It contains information about;
* <ul>
* <li>name: the type of the parameter</li>
* </ul>
*
* <p>Also associated with each parameter is a set of arbitrary
* Attributes that can be used to store extra information
* about parameter. See {@link ComponentDescriptor} for example
* of how to declare the container specific Attributes. Usually
* these attributes are used to store information such as display
* name for a Parameter.</p>
*
* @author <a href="mailto:peter at apache.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/10/01 23:32:19 $
*/
public final class ParameterDescriptor
extends FeatureDescriptor
implements Serializable
{
/**
* The class/interface of the Entry.
*/
private final String m_type;
/**
* Construct an Entry.
*/
public ParameterDescriptor( final String type,
final Attribute[] attribute )
{
super( attribute );
if( null == type )
{
throw new NullPointerException( "type" );
}
m_type = type;
}
/**
* Return the type of the parameter.
*
* @return the type of the parameter.
*/
public String getType()
{
return m_type;
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>