org.apache.aries.blueprint.reflect
Class BeanArgumentImpl

java.lang.Object
  extended by org.apache.aries.blueprint.reflect.BeanArgumentImpl
All Implemented Interfaces:
MutableBeanArgument, BeanArgument

public class BeanArgumentImpl
extends java.lang.Object
implements MutableBeanArgument

Implementation of BeanArgument

Version:
$Rev: 896324 $, $Date: 2010-01-06 06:05:04 +0000 (Wed, 06 Jan 2010) $

Constructor Summary
BeanArgumentImpl()
           
BeanArgumentImpl(BeanArgument source)
           
BeanArgumentImpl(Metadata value, java.lang.String valueType, int index)
           
 
Method Summary
 int getIndex()
          Return the zero-based index into the parameter list of the factory method or constructor to be invoked for this argument.
 Metadata getValue()
          Return the Metadata for the argument value.
 java.lang.String getValueType()
          Return the name of the value type to match the argument and convert the value into when invoking the constructor or factory method.
 void setIndex(int index)
           
 void setValue(Metadata value)
           
 void setValueType(java.lang.String valueType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanArgumentImpl

public BeanArgumentImpl()

BeanArgumentImpl

public BeanArgumentImpl(Metadata value,
                        java.lang.String valueType,
                        int index)

BeanArgumentImpl

public BeanArgumentImpl(BeanArgument source)
Method Detail

getValue

public Metadata getValue()
Description copied from interface: BeanArgument
Return the Metadata for the argument value. This is specified by the value attribute.

Specified by:
getValue in interface BeanArgument
Returns:
The Metadata for the argument value.

setValue

public void setValue(Metadata value)
Specified by:
setValue in interface MutableBeanArgument

getValueType

public java.lang.String getValueType()
Description copied from interface: BeanArgument
Return the name of the value type to match the argument and convert the value into when invoking the constructor or factory method. This is specified by the type attribute.

Specified by:
getValueType in interface BeanArgument
Returns:
The name of the value type to convert the value into, or null if no type is specified.

setValueType

public void setValueType(java.lang.String valueType)
Specified by:
setValueType in interface MutableBeanArgument

getIndex

public int getIndex()
Description copied from interface: BeanArgument
Return the zero-based index into the parameter list of the factory method or constructor to be invoked for this argument. This is determined by specifying the index attribute for the bean. If not explicitly set, this will return -1 and the initial ordering is defined by its position in the BeanMetadata.getArguments() list. This is specified by the index attribute.

Specified by:
getIndex in interface BeanArgument
Returns:
The zero-based index of the parameter, or -1 if no index is specified.

setIndex

public void setIndex(int index)
Specified by:
setIndex in interface MutableBeanArgument

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.