public class BeanArgumentImpl extends Object implements MutableBeanArgument
| Constructor and Description |
|---|
BeanArgumentImpl() |
BeanArgumentImpl(BeanArgument source) |
BeanArgumentImpl(Metadata value,
String valueType,
int index) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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(String valueType) |
String |
toString() |
public BeanArgumentImpl()
public BeanArgumentImpl(BeanArgument source)
public Metadata getValue()
BeanArgumentvalue attribute.getValue in interface BeanArgumentpublic void setValue(Metadata value)
setValue in interface MutableBeanArgumentpublic String getValueType()
BeanArgumenttype attribute.getValueType in interface BeanArgumentnull if no type is specified.public void setValueType(String valueType)
setValueType in interface MutableBeanArgumentpublic int getIndex()
BeanArgumentindex 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.getIndex in interface BeanArgumentpublic void setIndex(int index)
setIndex in interface MutableBeanArgumentCopyright © 2015. All rights reserved.