org.exolab.castor.builder.factory

Class CollectionJ2MemberAndAccessorFactory

Known Direct Subclasses:
CollectionJ2NoIndexMemberAndAccessorFactory

public class CollectionJ2MemberAndAccessorFactory
extends CollectionMemberAndAccessorFactory

The Factory for Java2 Collections.

Constructor Summary

CollectionJ2MemberAndAccessorFactory(JavaNaming naming)
Creates a new CollectionJ2MemberAndAccessorFactory.

Method Summary

protected void
createAddMethod(CollectionInfo fieldInfo, JClass jClass)
protected void
createCollectionIterationMethods(CollectionInfo fieldInfo, JClass jClass, boolean useJava50)

To the Java-1 collection iterators, we add the Java-2 Iterator.
protected void
createEnumerateMethod(CollectionInfo fieldInfo, JClass jClass, boolean useJava50)

Methods inherited from class org.exolab.castor.builder.factory.CollectionMemberAndAccessorFactory

addMaxSizeCheck, createAccessMethods, createAddByIndexMethod, createAddMethod, createBoundPropertyCode, createCollectionIterationMethods, createEnumerateMethod, createGetByIndexMethod, createIteratorMethod, createRemoveByIndexMethod, createSetByIndexMethod, generateInitializerCode

Methods inherited from class org.exolab.castor.builder.factory.FieldMemberAndAccessorFactory

createAccessMethods, createJavaField, generateInitializerCode, getJavaNaming

Constructor Details

CollectionJ2MemberAndAccessorFactory

public CollectionJ2MemberAndAccessorFactory(JavaNaming naming)
Creates a new CollectionJ2MemberAndAccessorFactory.
Parameters:
naming - the javaNaming to use

Method Details

createAddMethod

protected final void createAddMethod(CollectionInfo fieldInfo,
                                     JClass jClass)
Overrides:
createAddMethod in interface CollectionMemberAndAccessorFactory

createCollectionIterationMethods

protected final void createCollectionIterationMethods(CollectionInfo fieldInfo,
                                                      JClass jClass,
                                                      boolean useJava50)

To the Java-1 collection iterators, we add the Java-2 Iterator.
Overrides:
createCollectionIterationMethods in interface CollectionMemberAndAccessorFactory

createEnumerateMethod

protected final void createEnumerateMethod(CollectionInfo fieldInfo,
                                           JClass jClass,
                                           boolean useJava50)
Overrides:
createEnumerateMethod in interface CollectionMemberAndAccessorFactory

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