org.exolab.castor.builder.info
Class CollectionInfoODMG30

java.lang.Object
  extended by org.exolab.castor.builder.info.XMLInfo
      extended by org.exolab.castor.builder.info.FieldInfo
          extended by org.exolab.castor.builder.info.CollectionInfo
              extended by org.exolab.castor.builder.info.CollectionInfoODMG30

public final class CollectionInfoODMG30
extends CollectionInfo

A helper used for generating source that deals with Collections.

Version:
$Revision: 6755 $ $Date: 2006-02-23 01:08:24 -0700 (Thu, 23 Feb 2006) $
Author:
Frank Thelen, Bernd Deichmann

Field Summary
 
Fields inherited from class org.exolab.castor.builder.info.CollectionInfo
DEFAULT_REFERENCE_SUFFIX, REFERENCE_SUFFIX_PROPERTY
 
Fields inherited from class org.exolab.castor.builder.info.FieldInfo
READ_METHOD, READ_WRITE_METHODS, WRITE_METHOD
 
Fields inherited from class org.exolab.castor.builder.info.XMLInfo
ATTRIBUTE_TYPE, CHOICE_NODE_NAME_ERROR_INDICATION, ELEMENT_TYPE, TEXT_TYPE
 
Constructor Summary
CollectionInfoODMG30(XSType contentType, java.lang.String name, java.lang.String elementName, boolean useJava50)
          Creates a new CollectionInfoODMG30.
 
Method Summary
protected  void createEnumerateMethod(JClass jClass, boolean useJava50)
          
 void generateInitializerCode(JSourceCode jsc)
          Creates code for initialization of this Member.
 
Methods inherited from class org.exolab.castor.builder.info.CollectionInfo
addMaxSizeCheck, createAccessMethods, createAddAndRemoveMethods, createAddByIndexMethod, createAddMethod, createBoundPropertyCode, createCollectionIterationMethods, createExtraMethods, createGetAndSetMethods, createGetAsArrayMethod, createGetAsReferenceMethod, createGetByIndexMethod, createGetCountMethod, createIteratorMethod, createRemoveAllMethod, createRemoveByIndexMethod, createRemoveObjectMethod, createSetAsArrayMethod, createSetAsCopyMethod, createSetAsReferenceMethod, createSetByIndexMethod, getContent, getContentName, getContentType, getElementName, getMethodSuffix, getReferenceMethodSuffix, getXSList, isMultivalued, setCreateExtraMethods, setReferenceMethodSuffix
 
Methods inherited from class org.exolab.castor.builder.info.FieldInfo
createGetterComment, createGetterMethod, createHasAndDeleteMethods, createJavaField, createSetterComment, createSetterMethod, getComment, getDeclaringClassInfo, getDefaultValue, getDeleteMethodName, getFixedValue, getHasMethodName, getMethods, getName, getReadMethodName, getSubstitutionGroupMembers, getValidator, getWriteMethodName, getXMLFieldHandler, isBound, isContainer, isHasAndDeleteMethods, isNillable, isTransient, setBound, setComment, setContainer, setDeclaringClassInfo, setDefaultValue, setFieldInfoReference, setFinal, setFixedValue, setMethods, setNillable, setStatic, setSubstitutionGroupMembers, setTransient, setValidator, setVisibility, setXMLFieldHandler
 
Methods inherited from class org.exolab.castor.builder.info.XMLInfo
getNamespacePrefix, getNamespaceURI, getNodeName, getNodeType, getNodeTypeName, getSchemaType, isElementDefinition, isRequired, setElementDefinition, setMultivalued, setNamespacePrefix, setNamespaceURI, setNodeName, setNodeType, setRequired, setSchemaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionInfoODMG30

public CollectionInfoODMG30(XSType contentType,
                            java.lang.String name,
                            java.lang.String elementName,
                            boolean useJava50)
Creates a new CollectionInfoODMG30.

Parameters:
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
useJava50 - true if code is supposed to be generated for Java 5
Method Detail

generateInitializerCode

public void generateInitializerCode(JSourceCode jsc)
Creates code for initialization of this Member.

Overrides:
generateInitializerCode in class CollectionInfo
Parameters:
jsc - the JSourceCode in which to add the source to
See Also:
#generateInitializerCode(org.exolab.javasource.JSourceCode)

createEnumerateMethod

protected void createEnumerateMethod(JClass jClass,
                                     boolean useJava50)

Overrides:
createEnumerateMethod in class CollectionInfo


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com