org.apache.openejb.jee.was.v6.java
Class ArrayType

java.lang.Object
  extended by org.apache.openejb.jee.was.v6.ecore.EObject
      extended by org.apache.openejb.jee.was.v6.ecore.EModelElement
          extended by org.apache.openejb.jee.was.v6.ecore.ENamedElement
              extended by org.apache.openejb.jee.was.v6.ecore.EClassifier
                  extended by org.apache.openejb.jee.was.v6.ecore.EClass
                      extended by org.apache.openejb.jee.was.v6.java.JavaClass
                          extended by org.apache.openejb.jee.was.v6.java.ArrayType

public class ArrayType
extends JavaClass

Describes a Java Array type For multi-dimensional arrays, it is unlikely that the component type will be specified directly. This would require instantiating a chain of component types such as String[][][][]->String[][][]->String[][]->String[]->String. The component type relationship will be computed if the finalComponentType and array dimensions is specified. For this reason, the preferred way to create is through the JavaRefFactory factory method: createArrayType(JavaClass finalComponentType, int dimensions)

Java class for ArrayType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="ArrayType">
   <complexContent>
     <extension base="{java.xmi}JavaClass">
       <choice maxOccurs="unbounded" minOccurs="0">
         <element name="componentType" type="{http://www.eclipse.org/emf/2002/Ecore}EClassifier"/>
       </choice>
       <attribute name="arrayDimensions" type="{http://www.w3.org/2001/XMLSchema}int" />
       <attribute name="componentType" type="{http://www.w3.org/2001/XMLSchema}string" />
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  Integer arrayDimensions
           
protected  String componentType
           
protected  List<EClassifier> componentTypes
           
 
Fields inherited from class org.apache.openejb.jee.was.v6.java.JavaClass
classImport, declaredClasses, declaringClass, events, fields, implementsInterfaces, initializers, isFinal, isPublic, javaClassImplementsInterfaces, javaClassImports, javaDeclaredClasses, javaDeclaringClasses, javaPackageImports, kind, methods, packageImports
 
Fields inherited from class org.apache.openejb.jee.was.v6.ecore.EClass
eClassESuperTypes, eOperations, eStructuralFeatures, eSuperTypes, isAbstract, isInterface
 
Fields inherited from class org.apache.openejb.jee.was.v6.ecore.EClassifier
instanceClassName
 
Fields inherited from class org.apache.openejb.jee.was.v6.ecore.ENamedElement
name
 
Fields inherited from class org.apache.openejb.jee.was.v6.ecore.EModelElement
eAnnotations
 
Fields inherited from class org.apache.openejb.jee.was.v6.ecore.EObject
extensions, href, id, idref, label, type, uuid, version
 
Constructor Summary
ArrayType()
           
 
Method Summary
 Integer getArrayDimensions()
          Gets the value of the arrayDimensions property.
 String getComponentType()
          Gets the value of the componentType property.
 List<EClassifier> getComponentTypes()
          Gets the value of the componentTypes property.
 void setArrayDimensions(Integer value)
          Sets the value of the arrayDimensions property.
 void setComponentType(String value)
          Sets the value of the componentType property.
 
Methods inherited from class org.apache.openejb.jee.was.v6.java.JavaClass
getClassImport, getDeclaredClasses, getDeclaringClass, getEvents, getFields, getImplementsInterfaces, getInitializers, getJavaClassImplementsInterfaces, getJavaClassImports, getJavaDeclaredClasses, getJavaDeclaringClasses, getJavaPackageImports, getKind, getMethods, getPackageImports, isIsFinal, isIsPublic, setClassImport, setDeclaredClasses, setDeclaringClass, setImplementsInterfaces, setIsFinal, setIsPublic, setKind, setPackageImports
 
Methods inherited from class org.apache.openejb.jee.was.v6.ecore.EClass
getEClassESuperTypes, getEOperations, getEStructuralFeatures, getESuperTypes, isIsAbstract, isIsInterface, setESuperTypes, setIsAbstract, setIsInterface
 
Methods inherited from class org.apache.openejb.jee.was.v6.ecore.EClassifier
getInstanceClassName, setInstanceClassName
 
Methods inherited from class org.apache.openejb.jee.was.v6.ecore.ENamedElement
getName, setName
 
Methods inherited from class org.apache.openejb.jee.was.v6.ecore.EModelElement
getEAnnotations
 
Methods inherited from class org.apache.openejb.jee.was.v6.ecore.EObject
getExtensions, getHref, getId, getIdref, getLabel, getType, getUuid, getVersion, setHref, setId, setIdref, setLabel, setType, setUuid, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentTypes

protected List<EClassifier> componentTypes

arrayDimensions

protected Integer arrayDimensions

componentType

protected String componentType
Constructor Detail

ArrayType

public ArrayType()
Method Detail

getComponentTypes

public List<EClassifier> getComponentTypes()
Gets the value of the componentTypes property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the componentTypes property.

For example, to add a new item, do as follows:

 getComponentTypes().add(newItem);
 

Objects of the following type(s) are allowed in the list EClassifier


getArrayDimensions

public Integer getArrayDimensions()
Gets the value of the arrayDimensions property.

Returns:
possible object is Integer

setArrayDimensions

public void setArrayDimensions(Integer value)
Sets the value of the arrayDimensions property.

Parameters:
value - allowed object is Integer

getComponentType

public String getComponentType()
Gets the value of the componentType property.

Returns:
possible object is String

setComponentType

public void setComponentType(String value)
Sets the value of the componentType property.

Parameters:
value - allowed object is String


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.