org.jboss.beans.metadata.plugins
Class AbstractArrayMetaData

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.AbstractCollectionMetaData
                  extended by org.jboss.beans.metadata.plugins.AbstractListMetaData
                      extended by org.jboss.beans.metadata.plugins.AbstractArrayMetaData
All Implemented Interfaces:
Serializable, Cloneable, Iterable<MetaDataVisitorNode>, Collection<MetaDataVisitorNode>, List<MetaDataVisitorNode>, TypeProvider, MetaDataVisitorNode, ValueMetaData, org.jboss.util.JBossInterface

public class AbstractArrayMetaData
extends AbstractListMetaData

Array metadata.

Version:
$Revision: 71794 $
Author:
Ales Justin, Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.beans.metadata.plugins.AbstractCollectionMetaData
collection, elementType
 
Fields inherited from class org.jboss.beans.metadata.plugins.AbstractTypeMetaData
beanName, configurator, context, propertyName, type
 
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
AbstractArrayMetaData()
          Create a new array value
 
Method Summary
protected
<T> T
checkResult(Object result, Class<T> expected)
          Check result for class compatibility.
 AbstractArrayMetaData clone()
          Clone the object
protected
<T> T
getTypeInstance(org.jboss.reflect.spi.TypeInfo info, ClassLoader cl, Class<T> expected)
          Create the class instance
 Object getValue(org.jboss.reflect.spi.TypeInfo info, ClassLoader cl)
          Get the value.
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractListMetaData
add, addAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractCollectionMetaData
add, addAll, clear, contains, containsAll, getChildren, getDefaultInstance, getElementClassInfo, getElementType, getType, isEmpty, iterator, remove, removeAll, retainAll, setElementType, size, toArray, toArray, toString
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractTypeMetaData
createInstance, getClass, getClassInfo, getClassInfo, getType, getTypeInfo, getTypeInfo, getTypeInstance, initialVisit, preinstantiatedLookup, preparePreinstantiatedLookup, setConfigurator, setType
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractValueMetaData
describeVisit, getUnderlyingValue, getValue, isUseJMXObjectNameFix, setValue, 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 java.util.List
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface org.jboss.util.JBossInterface
toShortString
 

Constructor Detail

AbstractArrayMetaData

public AbstractArrayMetaData()
Create a new array value

Method Detail

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 AbstractCollectionMetaData
Parameters:
info - the type info
cl - the classloader
Returns:
the value.
Throws:
Throwable - for any error

getTypeInstance

protected <T> T getTypeInstance(org.jboss.reflect.spi.TypeInfo info,
                                ClassLoader cl,
                                Class<T> expected)
                     throws Throwable
Description copied from class: AbstractTypeMetaData
Create the class instance

Overrides:
getTypeInstance in class AbstractTypeMetaData
Type Parameters:
T - expected type
Parameters:
info - the request type
cl - the classloader
expected - the expected class
Returns:
the class instance
Throws:
Throwable - for any error

checkResult

protected <T> T checkResult(Object result,
                            Class<T> expected)
Description copied from class: AbstractTypeMetaData
Check result for class compatibility.

Overrides:
checkResult in class AbstractTypeMetaData
Type Parameters:
T - the expected type
Parameters:
result - the result
expected - expected class
Returns:
casted result

clone

public AbstractArrayMetaData 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 AbstractListMetaData
Returns:
a clone of the object


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