Public Member Functions

org.exolab.castor.builder.CollectionInfoJ2 Class Reference

Inheritance diagram for org.exolab.castor.builder.CollectionInfoJ2:
org.exolab.castor.builder.CollectionInfo org.exolab.castor.builder.FieldInfo org.exolab.castor.builder.XMLInfo

List of all members.

Public Member Functions

 CollectionInfoJ2 (XSType contentType, String name, String elementName)
void generateInitializerCode (JSourceCode jsc)
void createAccessMethods (JClass jClass)
void createAddMethod (JMethod method)
void createAddInsertMethod (JMethod method)
void createEnumerateMethod (JMethod method)
void createGetMethod (JMethod method)
void createGetByIndexMethod (JMethod method)
void createGetCollectionReferenceMethod (JMethod method)
void createSetArrayMethod (JMethod method)
void createSetByIndexMethod (JMethod method)
void createSetCollectionMethod (JMethod method)
void createSetCollectionReferenceMethod (JMethod method)
void createRemoveMethod (JMethod method)
void createRemoveByObjectMethod (JMethod method)
void createRemoveByIndexMethod (JMethod method)
void createRemoveAllMethod (JMethod method)
void createClearMethod (JMethod method)

Detailed Description

A helper used for generating source that deals with Java 2 Collections.

Author:
Assaf Arkin
Version:
Revision:
1.2
Date:
2003/09/12 08:30:13

Constructor & Destructor Documentation

org.exolab.castor.builder.CollectionInfoJ2.CollectionInfoJ2 ( XSType  contentType,
String  name,
String  elementName 
)
Parameters:
contextType 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

References org.exolab.castor.builder.XMLInfo.getSchemaType(), org.exolab.castor.builder.XMLInfo.setSchemaType(), and org.exolab.castor.builder.CollectionInfo.xsList.


Member Function Documentation

void org.exolab.castor.builder.CollectionInfoJ2.createAccessMethods ( JClass  jClass  ) 

Creates the Access methods for the collection described by this CollectionInfo

Parameters:
jClass the JClass to add the methods to.

Reimplemented from org.exolab.castor.builder.CollectionInfo.

References org.exolab.javasource.JMethod.addException(), org.exolab.javasource.JClass.addMethod(), org.exolab.javasource.JMethod.addParameter(), org.exolab.castor.builder.CollectionInfoJ2.createAddInsertMethod(), org.exolab.castor.builder.CollectionInfoJ2.createAddMethod(), org.exolab.javasource.JType.createArray(), org.exolab.castor.builder.CollectionInfoJ2.createClearMethod(), org.exolab.castor.builder.CollectionInfoJ2.createEnumerateMethod(), org.exolab.castor.builder.CollectionInfoJ2.createGetByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createGetCollectionReferenceMethod(), org.exolab.castor.builder.CollectionInfo.createGetCountMethod(), org.exolab.castor.builder.CollectionInfoJ2.createGetMethod(), org.exolab.castor.builder.CollectionInfoJ2.createRemoveMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetCollectionMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetCollectionReferenceMethod(), org.exolab.castor.builder.CollectionInfo.extraMethods(), org.exolab.castor.builder.CollectionInfo.getContentName(), org.exolab.castor.builder.CollectionInfo.getContentType(), org.exolab.castor.builder.CollectionInfo.getElementName(), org.exolab.castor.builder.types.XSType.getJType(), org.exolab.castor.builder.CollectionInfo.getReferenceMethodSuffix(), and org.exolab.javasource.JParameter.getType().

void org.exolab.castor.builder.CollectionInfoJ2.createClearMethod ( JMethod  method  ) 
void org.exolab.castor.builder.CollectionInfoJ2.createEnumerateMethod ( JMethod  method  ) 
void org.exolab.castor.builder.CollectionInfoJ2.createGetCollectionReferenceMethod ( JMethod  method  ) 
void org.exolab.castor.builder.CollectionInfoJ2.createRemoveAllMethod ( JMethod  method  ) 
void org.exolab.castor.builder.CollectionInfoJ2.createRemoveByObjectMethod ( JMethod  method  ) 
void org.exolab.castor.builder.CollectionInfoJ2.generateInitializerCode ( JSourceCode  jsc  ) 

Creates code for initialization of this Member

Parameters:
jsc the JSourceCode in which to add the source to

Reimplemented from org.exolab.castor.builder.CollectionInfo.

References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), and org.exolab.castor.builder.FieldInfo.getName().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties