org.jboss.beans.metadata.plugins
Class StringValueMetaData
java.lang.Object
org.jboss.util.JBossObject
org.jboss.beans.metadata.plugins.AbstractValueMetaData
org.jboss.beans.metadata.plugins.AbstractTypeMetaData
org.jboss.beans.metadata.plugins.StringValueMetaData
- All Implemented Interfaces:
- Serializable, Cloneable, TypeProvider, MetaDataVisitorNode, ValueMetaData, org.jboss.util.JBossInterface
public class StringValueMetaData
- extends AbstractTypeMetaData
String value.
- Version:
- $Revision: 65585 $
- Author:
- Adrian Brock
- See Also:
- Serialized Form
| Fields inherited from class org.jboss.util.JBossObject |
hashCode, toString |
| Methods inherited from class org.jboss.beans.metadata.plugins.AbstractTypeMetaData |
checkResult, createInstance, getClass, getClassInfo, getClassInfo, getType, getTypeInstance, initialVisit, preinstantiatedLookup, preparePreinstantiatedLookup, setConfigurator, setType, toString |
| Methods inherited from class org.jboss.util.JBossObject |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
| Methods inherited from interface org.jboss.util.JBossInterface |
clone, toShortString |
StringValueMetaData
public StringValueMetaData()
- Create a new string value
StringValueMetaData
public StringValueMetaData(String value)
- Create a new string value
- Parameters:
value - the value
setValue
public void setValue(String value)
- Set the value
- Parameters:
value - the value
setValue
public void setValue(Object value)
- Overrides:
setValue in class AbstractValueMetaData
getValue
public Object getValue(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl)
throws Throwable
- Description copied from interface:
ValueMetaData
- Get the value.
- Specified by:
getValue in interface ValueMetaData- Overrides:
getValue in class AbstractValueMetaData
- Parameters:
info - the type infocl - the classloader
- Returns:
- the value.
- Throws:
Throwable - for any error
getDefaultInstance
protected Object getDefaultInstance()
- Description copied from class:
AbstractTypeMetaData
- Get the default instance.
- Specified by:
getDefaultInstance in class AbstractTypeMetaData
- Returns:
- the default instance
getType
public org.jboss.reflect.spi.TypeInfo getType(MetaDataVisitor visitor,
MetaDataVisitorNode previous)
throws Throwable
- Description copied from interface:
TypeProvider
- Get the injectee type info.
- Specified by:
getType in interface TypeProvider- Overrides:
getType in class AbstractValueMetaData
- Parameters:
visitor - meda data visitorprevious - previous node in the stack
- Returns:
- TypeInfo type info for injection ByClass
- Throws:
Throwable - if could not determine class
isReplace
public boolean isReplace()
setReplace
public void setReplace(boolean replace)
isTrim
public boolean isTrim()
setTrim
public void setTrim(boolean trim)
Copyright ? 2007 JBoss Inc.. All Rights Reserved.