org.exolab.castor.builder

Class CollectionInfoODMG30

public class CollectionInfoODMG30 extends CollectionInfo

A helper used for generating source that deals with Collections.

Version: $Revision: 1.2 $ $Date: 2005/03/05 13:41:42 $

Author: Frank Thelen Bernd Deichmann

Constructor Summary
CollectionInfoODMG30(XSType contentType, String name, String elementName)
Creates a new CollectionInfoODMG30
Method Summary
voidcreateAddInsertMethod(JMethod method)
Creates implementation of add method with index.
voidcreateAddMethod(JMethod method)
Creates implementation of add method.
voidcreateEnumerateMethod(JMethod method)
Creates implementation of Enumerate method.
voidcreateGetByIndexMethod(JMethod method)
Creates implementation of the get(index) method.
voidcreateGetCountMethod(JMethod method)
Creates implementation of getCount method.
voidcreateGetMethod(JMethod method)
Creates implementation of object[] get() method.
voidcreateRemoveAllMethod(JMethod method)
Creates implementation of removeAll() method.
voidcreateRemoveByIndexMethod(JMethod method)
Creates implementation of remove(int i) method.
voidcreateRemoveByObjectMethod(JMethod method)
Creates implementation of remove(Object) method.
voidcreateSetArrayMethod(JMethod method)
Creates implementation of array set method Method added 12/14/2000 BD
voidcreateSetByIndexMethod(JMethod method)
Creates implementation of set method.
voidgenerateInitializerCode(JSourceCode jsc)
Creates code for initialization of this Member

Constructor Detail

CollectionInfoODMG30

public CollectionInfoODMG30(XSType contentType, String name, String elementName)
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

Method Detail

createAddInsertMethod

public void createAddInsertMethod(JMethod method)
Creates implementation of add method with index.

Parameters: method the JMethod in which to create the source code.

createAddMethod

public void createAddMethod(JMethod method)
Creates implementation of add method.

createEnumerateMethod

public void createEnumerateMethod(JMethod method)
Creates implementation of Enumerate method.

createGetByIndexMethod

public void createGetByIndexMethod(JMethod method)
Creates implementation of the get(index) method.

createGetCountMethod

public void createGetCountMethod(JMethod method)
Creates implementation of getCount method.

createGetMethod

public void createGetMethod(JMethod method)
Creates implementation of object[] get() method.

createRemoveAllMethod

public void createRemoveAllMethod(JMethod method)
Creates implementation of removeAll() method.

createRemoveByIndexMethod

public void createRemoveByIndexMethod(JMethod method)
Creates implementation of remove(int i) method.

createRemoveByObjectMethod

public void createRemoveByObjectMethod(JMethod method)
Creates implementation of remove(Object) method.

createSetArrayMethod

public void createSetArrayMethod(JMethod method)
Creates implementation of array set method Method added 12/14/2000 BD

createSetByIndexMethod

public void createSetByIndexMethod(JMethod method)
Creates implementation of set method.

generateInitializerCode

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

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

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