com.caucho.config.type
Class ArrayType<T,X>

java.lang.Object
  extended by com.caucho.config.type.ConfigType<T>
      extended by com.caucho.config.type.ArrayType<T,X>

public class ArrayType<T,X>
extends ConfigType<T>

Represents an array of values for configuration.


Constructor Summary
ArrayType(ConfigType<X> componentType, java.lang.Class<X> componentClass)
           
 
Method Summary
 java.lang.Object create(java.lang.Object parent, QName name)
          Creates a new instance
 Attribute getAttribute(QName name)
          Returns the attribute based on the given name.
 ConfigType<X> getComponentType()
           
 java.lang.Class<T> getType()
          Returns the given type.
 boolean isArray()
          Returns true for an array type
 boolean isInlineType(ConfigType<?> type)
           
 java.lang.Object replaceObject(java.lang.Object value)
          Replaces the object.
 java.lang.String toString()
           
 java.lang.Object valueOf(java.lang.String text)
          Converts the string to the given value.
 
Methods inherited from class com.caucho.config.type.ConfigType
afterConfigure, beforeConfigure, beforeConfigureBean, carefulIntrospect, createType, getAddAttribute, getAddBeanAttribute, getConstructor, getContentProgramAttribute, getDefaultAttribute, getProgramAttribute, getType, getTypeName, init, inject, introspect, isBean, isConstructableFromString, isEL, isEnvBean, isNode, isNoTrim, isProgram, isQualifier, isReplace, setEnvBean, setProperty, valueOf, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayType

public ArrayType(ConfigType<X> componentType,
                 java.lang.Class<X> componentClass)
Method Detail

isArray

public boolean isArray()
Description copied from class: ConfigType
Returns true for an array type

Overrides:
isArray in class ConfigType<T>

getComponentType

public ConfigType<X> getComponentType()
Overrides:
getComponentType in class ConfigType<T>

getType

public java.lang.Class<T> getType()
Returns the given type.

Specified by:
getType in class ConfigType<T>

isInlineType

public boolean isInlineType(ConfigType<?> type)
Overrides:
isInlineType in class ConfigType<T>

create

public java.lang.Object create(java.lang.Object parent,
                               QName name)
Creates a new instance

Overrides:
create in class ConfigType<T>

getAttribute

public Attribute getAttribute(QName name)
Returns the attribute based on the given name.

Overrides:
getAttribute in class ConfigType<T>

replaceObject

public java.lang.Object replaceObject(java.lang.Object value)
Replaces the object.

Overrides:
replaceObject in class ConfigType<T>

valueOf

public java.lang.Object valueOf(java.lang.String text)
Converts the string to the given value.

Specified by:
valueOf in class ConfigType<T>

toString

public java.lang.String toString()
Overrides:
toString in class ConfigType<T>