public class CollectionInfoJ2 extends CollectionInfo
DEFAULT_REFERENCE_SUFFIX, REFERENCE_SUFFIX_PROPERTYREAD_METHOD, READ_WRITE_METHODS, WRITE_METHODATTRIBUTE_TYPE, CHOICE_NODE_NAME_ERROR_INDICATION, ELEMENT_TYPE, TEXT_TYPE| Constructor and Description |
|---|
CollectionInfoJ2(XSType contentType,
java.lang.String name,
java.lang.String elementName,
java.lang.String collectionType,
boolean useJava50) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createAddMethod(JClass jClass) |
protected void |
createCollectionIterationMethods(JClass jClass,
boolean useJava50)
Generate methods for iterating over the objects in the collection.
|
protected void |
createEnumerateMethod(JClass jClass,
boolean useJava50) |
addMaxSizeCheck, createAccessMethods, createAddAndRemoveMethods, createBoundPropertyCode, createExtraMethods, createGetAndSetMethods, createGetAsArrayMethod, createGetAsReferenceMethod, createGetByIndexMethod, createGetCountMethod, createInsertMethod, createIteratorMethod, createRemoveAllMethod, createRemoveByIndexMethod, createRemoveObjectMethod, createSetAsArrayMethod, createSetAsCopyMethod, createSetAsReferenceMethod, createSetByIndexMethod, generateInitializerCode, getContent, getContentName, getContentType, getElementName, getMethodSuffix, getReferenceMethodSuffix, getXSList, isMultivalued, setCreateExtraMethods, setReferenceMethodSuffixcreateGetterComment, createGetterMethod, createHasAndDeleteMethods, createJavaField, createSetterComment, createSetterMethod, getComment, getDeclaringClassInfo, getDefaultValue, getDeleteMethodName, getFixedValue, getHasMethodName, getMethods, getName, getReadMethodName, getValidator, getWriteMethodName, getXMLFieldHandler, isBound, isContainer, isHasAndDeleteMethods, isNillable, isTransient, setBound, setComment, setContainer, setDeclaringClassInfo, setDefaultValue, setFieldInfoReference, setFinal, setFixedValue, setMethods, setNillable, setStatic, setTransient, setValidator, setXMLFieldHandlergetNamespacePrefix, getNamespaceURI, getNodeName, getNodeType, getNodeTypeName, getSchemaType, isElementDefinition, isRequired, setElementDefinition, setMultivalued, setNamespacePrefix, setNamespaceURI, setNodeName, setNodeType, setRequired, setSchemaTypepublic CollectionInfoJ2(XSType contentType, java.lang.String name, java.lang.String elementName, java.lang.String collectionType, boolean useJava50)
contentType - The content type of the collection, ie. the type of objects
that the collection will contain.name - The name of the Collection.elementName - The element name for each element in collection.collectionType - Java type (e.g., 'arraylist') to use to store the collection.
The name is NOT fully specified and is all lowercase.
Currently, any value but "arraylist" does not work. See
FieldInfoFactory.ARRAY_LISTuseJava50 - true if source code is supposed to be generated for Java 5protected void createCollectionIterationMethods(JClass jClass, boolean useJava50)
createCollectionIterationMethods in class CollectionInfojClass - the JClass to which we add this methoduseJava50 - true if source code is supposed to be generated for Java 5CollectionInfo.createCollectionIterationMethods(org.exolab.javasource.JClass, boolean)protected void createEnumerateMethod(JClass jClass, boolean useJava50)
createEnumerateMethod in class CollectionInfoCollectionInfo.createEnumerateMethod(org.exolab.javasource.JClass, boolean)protected void createAddMethod(JClass jClass)
createAddMethod in class CollectionInfoIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com