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()
BeanArgument
value
attribute.getValue
in interface BeanArgument
public void setValue(Metadata value)
setValue
in interface MutableBeanArgument
public String getValueType()
BeanArgument
type
attribute.getValueType
in interface BeanArgument
null
if no type is specified.public void setValueType(String valueType)
setValueType
in interface MutableBeanArgument
public int getIndex()
BeanArgument
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.getIndex
in interface BeanArgument
public void setIndex(int index)
setIndex
in interface MutableBeanArgument
Copyright © 2012. All Rights Reserved.