Class 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
Fields Modifier and Type Field Description protected IntegerarrayDimensionsprotected StringcomponentTypeprotected 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
-
-
Constructor Summary
Constructors Constructor Description ArrayType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetArrayDimensions()Gets the value of the arrayDimensions property.StringgetComponentType()Gets the value of the componentType property.List<EClassifier>getComponentTypes()Gets the value of the componentTypes property.voidsetArrayDimensions(Integer value)Sets the value of the arrayDimensions property.voidsetComponentType(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
-
-
-
-
Field Detail
-
componentTypes
protected List<EClassifier> componentTypes
-
arrayDimensions
protected Integer arrayDimensions
-
componentType
protected String componentType
-
-
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 asetmethod 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 listEClassifier
-
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 isInteger
-
getComponentType
public String getComponentType()
Gets the value of the componentType property.- Returns:
- possible object is
String
-
-