|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.beans.metadata.plugins.AbstractFeatureMetaData
org.jboss.beans.metadata.plugins.AbstractParameterMetaData
public class AbstractParameterMetaData
Metadata for a parameter.
Field Summary | |
---|---|
protected int |
index
The index in parameter list |
protected Boolean |
replace
Whether to replace |
protected Boolean |
trim
Whether to trim |
protected String |
type
The parameter type |
protected ValueMetaData |
value
The parameter value |
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Fields inherited from interface org.jboss.beans.metadata.plugins.TypeProvider |
---|
ERROR_MSG |
Constructor Summary | |
---|---|
AbstractParameterMetaData()
Create a new parameter meta data |
|
AbstractParameterMetaData(Object value)
Create a new parameter meta data |
|
AbstractParameterMetaData(String type,
Object value)
Create a new parameter meta data |
|
AbstractParameterMetaData(String type,
String value)
Create a new parameter meta data |
|
AbstractParameterMetaData(String type,
ValueMetaData value)
Create a new parameter meta data |
|
AbstractParameterMetaData(ValueMetaData value)
Create a new parameter meta data |
Method Summary | |
---|---|
protected void |
addChildren(Set<MetaDataVisitorNode> children)
|
AbstractParameterMetaData |
clone()
Clone the object |
int |
getIndex()
Get the index |
String |
getType()
Get the type. |
org.jboss.reflect.spi.TypeInfo |
getType(MetaDataVisitor visitor,
MetaDataVisitorNode previous)
Get the injectee type info. |
ValueMetaData |
getValue()
Get the value. |
void |
initialVisit(MetaDataVisitor visitor)
Visit the node |
void |
setIndex(int index)
Set the index |
void |
setPropertyReplace(boolean replace)
|
void |
setPropertyTrim(boolean trim)
|
void |
setType(String type)
|
void |
setValue(ValueMetaData value)
Set the value. |
void |
setValueObject(Object value)
|
void |
setValueString(String value)
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractFeatureMetaData |
---|
applyCollectionOrMapCheck, describeVisit, doClone, getAnnotations, getChildren, getDescription, setAnnotations, setDescription |
Methods inherited from class org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.beans.metadata.spi.FeatureMetaData |
---|
getAnnotations, getDescription |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
toShortString |
Methods inherited from interface org.jboss.beans.metadata.spi.MetaDataVisitorNode |
---|
describeVisit, getChildren |
Field Detail |
---|
protected String type
protected ValueMetaData value
protected int index
protected Boolean replace
protected Boolean trim
Constructor Detail |
---|
public AbstractParameterMetaData()
public AbstractParameterMetaData(Object value)
value
- the valuepublic AbstractParameterMetaData(ValueMetaData value)
value
- the value metadatapublic AbstractParameterMetaData(String type, Object value)
type
- the typevalue
- the valuepublic AbstractParameterMetaData(String type, String value)
type
- the typevalue
- the string valuepublic AbstractParameterMetaData(String type, ValueMetaData value)
type
- the typevalue
- the value meta dataMethod Detail |
---|
public String getType()
ParameterMetaData
getType
in interface ParameterMetaData
public void setType(String type)
public ValueMetaData getValue()
ParameterMetaData
getValue
in interface ValueMetaDataAware
getValue
in interface ParameterMetaData
public int getIndex()
ParameterMetaData
getIndex
in interface ParameterMetaData
public void setIndex(int index)
ParameterMetaData
setIndex
in interface ParameterMetaData
index
- the indexpublic void setValue(ValueMetaData value)
ValueMetaDataAware
setValue
in interface ValueMetaDataAware
value
- the valuepublic void setValueObject(Object value)
public void setValueString(String value)
public void setPropertyReplace(boolean replace)
public void setPropertyTrim(boolean trim)
public void initialVisit(MetaDataVisitor visitor)
MetaDataVisitorNode
initialVisit
in interface MetaDataVisitorNode
initialVisit
in class AbstractFeatureMetaData
visitor
- the visitorprotected void addChildren(Set<MetaDataVisitorNode> children)
addChildren
in class AbstractFeatureMetaData
public org.jboss.reflect.spi.TypeInfo getType(MetaDataVisitor visitor, MetaDataVisitorNode previous) throws Throwable
TypeProvider
getType
in interface TypeProvider
visitor
- meda data visitorprevious
- previous node in the stack
Throwable
- if could not determine classpublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class AbstractFeatureMetaData
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class AbstractFeatureMetaData
public AbstractParameterMetaData clone()
MetaDataVisitorNode
clone
in interface MetaDataVisitorNode
clone
in interface org.jboss.util.JBossInterface
clone
in class org.jboss.util.JBossObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |