org.jboss.beans.metadata.plugins
Class StringValueMetaData

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.metadata.plugins.AbstractValueMetaData
          extended by org.jboss.beans.metadata.plugins.AbstractTypeMetaData
              extended by 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: 87640 $
Author:
Ales Justin, Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.beans.metadata.plugins.AbstractTypeMetaData
beanName, configurator, context, propertyName, type
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, toString
 
Fields inherited from interface org.jboss.beans.metadata.plugins.TypeProvider
ERROR_MSG
 
Constructor Summary
StringValueMetaData()
          Create a new string value
StringValueMetaData(String value)
          Create a new string value
 
Method Summary
 StringValueMetaData clone()
          Clone the object
protected  Object getDefaultInstance()
          Get the default instance.
 org.jboss.reflect.spi.TypeInfo getType(MetaDataVisitor visitor, MetaDataVisitorNode previous)
          Get the injectee type info.
 String getValue()
           
 Object getValue(org.jboss.reflect.spi.TypeInfo info, ClassLoader cl)
          Get the value.
 boolean isReplace()
           
 boolean isTrim()
           
protected  boolean isUseJMXObjectNameFix()
          Do we use jmx object name fix.
 void setReplace(boolean replace)
           
 void setTrim(boolean trim)
           
 void setValue(Object value)
           
 void setValue(String value)
          Set the value
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractTypeMetaData
checkResult, createInstance, getClass, getClassInfo, getClassInfo, getType, getTypeInfo, getTypeInfo, getTypeInstance, getTypeInstance, initialVisit, preinstantiatedLookup, preparePreinstantiatedLookup, setConfigurator, setType, toString
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractValueMetaData
describeVisit, getChildren, getUnderlyingValue, toShortString
 
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.util.JBossInterface
toShortString
 

Constructor Detail

StringValueMetaData

public StringValueMetaData()
Create a new string value


StringValueMetaData

public StringValueMetaData(String value)
Create a new string value

Parameters:
value - the value
Method Detail

isUseJMXObjectNameFix

protected boolean isUseJMXObjectNameFix()
Description copied from class: AbstractValueMetaData
Do we use jmx object name fix.

Overrides:
isUseJMXObjectNameFix in class AbstractValueMetaData
Returns:
do we use jmx object name fix

getValue

public String getValue()
Overrides:
getValue in class AbstractValueMetaData

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 info
cl - 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 visitor
previous - 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)

clone

public StringValueMetaData clone()
Description copied from interface: MetaDataVisitorNode
Clone the object

Specified by:
clone in interface MetaDataVisitorNode
Specified by:
clone in interface org.jboss.util.JBossInterface
Overrides:
clone in class AbstractValueMetaData
Returns:
a clone of the object


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.