|
||||||||||
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.AbstractPropertyMetaData
public class AbstractPropertyMetaData
Metadata for a property.
Field Summary | |
---|---|
protected String |
name
The property name |
protected boolean |
preInstantiate
The preinstantiate |
protected String |
type
The property type |
protected ValueMetaData |
value
The property 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 | |
---|---|
AbstractPropertyMetaData()
Create a new property meta data |
|
AbstractPropertyMetaData(String name,
Object value)
Create a new property meta data |
|
AbstractPropertyMetaData(String name,
String value)
Create a new property meta data |
|
AbstractPropertyMetaData(String name,
String value,
String type)
Create a new property meta data |
|
AbstractPropertyMetaData(String name,
ValueMetaData value)
Create a new attribute meta data |
Method Summary | |
---|---|
void |
addChildren(Set<MetaDataVisitorNode> children)
|
AbstractPropertyMetaData |
clone()
Clone the object |
String |
getName()
Get the name. |
String |
getPropertyType()
|
String |
getType()
Get property type if possible. |
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 |
boolean |
isPreInstantiate()
Get the preinstantiate flag. |
void |
setName(String name)
Set the name |
void |
setPreInstantiate(boolean preInstantiate)
|
void |
setPropertyReplace(boolean replace)
|
void |
setPropertyTrim(boolean trim)
|
void |
setPropertyType(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 name
protected boolean preInstantiate
protected ValueMetaData value
protected String type
Constructor Detail |
---|
public AbstractPropertyMetaData()
public AbstractPropertyMetaData(String name, Object value)
name
- the namevalue
- the valuepublic AbstractPropertyMetaData(String name, String value)
name
- the namevalue
- the string valuepublic AbstractPropertyMetaData(String name, ValueMetaData value)
name
- the namevalue
- the value meta datapublic AbstractPropertyMetaData(String name, String value, String type)
name
- the namevalue
- the string valuetype
- the typeMethod Detail |
---|
public String getName()
PropertyMetaData
getName
in interface PropertyMetaData
public void setName(String name)
name
- the namepublic String getType()
PropertyMetaData
getType
in interface PropertyMetaData
public boolean isPreInstantiate()
PropertyMetaData
isPreInstantiate
in interface PropertyMetaData
public void setPreInstantiate(boolean preInstantiate)
public ValueMetaData getValue()
PropertyMetaData
getValue
in interface ValueMetaDataAware
getValue
in interface PropertyMetaData
public void setValue(ValueMetaData value)
setValue
in interface ValueMetaDataAware
value
- the valuepublic void setValueObject(Object value)
public void setValueString(String value)
public String getPropertyType()
public void setPropertyType(String type)
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 visitorpublic 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 AbstractPropertyMetaData 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 |