org.exolab.castor.builder.factory
Class CollectionJ2NoIndexMemberAndAccessorFactory

java.lang.Object
  extended by org.exolab.castor.builder.factory.FieldMemberAndAccessorFactory
      extended by org.exolab.castor.builder.factory.CollectionMemberAndAccessorFactory
          extended by org.exolab.castor.builder.factory.CollectionJ2MemberAndAccessorFactory
              extended by org.exolab.castor.builder.factory.CollectionJ2NoIndexMemberAndAccessorFactory

public class CollectionJ2NoIndexMemberAndAccessorFactory
extends CollectionJ2MemberAndAccessorFactory

A Factory that avoids the creation of the index methods.


Constructor Summary
CollectionJ2NoIndexMemberAndAccessorFactory(JavaNaming naming)
          Creates a new CollectionJ2NoIndexMemberAndAccessorFactory.
 
Method Summary
protected  void createAddByIndexMethod(CollectionInfo fieldInfo, JClass jClass)
          Creates the add by index method.
protected  void createGetByIndexMethod(CollectionInfo fieldInfo, JClass jClass)
          Creates the get by index method.
protected  void createRemoveByIndexMethod(CollectionInfo fieldInfo, JClass jClass)
          Creates the remove by index method.
protected  void createSetByIndexMethod(CollectionInfo fieldInfo, JClass jClass)
          Creates the set by index method.
 
Methods inherited from class org.exolab.castor.builder.factory.CollectionJ2MemberAndAccessorFactory
createAddMethod, createCollectionIterationMethods, createEnumerateMethod
 
Methods inherited from class org.exolab.castor.builder.factory.CollectionMemberAndAccessorFactory
addMaxSizeCheck, createAccessMethods, createBoundPropertyCode, createIteratorMethod, generateInitializerCode
 
Methods inherited from class org.exolab.castor.builder.factory.FieldMemberAndAccessorFactory
createJavaField, getJavaNaming
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionJ2NoIndexMemberAndAccessorFactory

public CollectionJ2NoIndexMemberAndAccessorFactory(JavaNaming naming)
Creates a new CollectionJ2NoIndexMemberAndAccessorFactory.

Parameters:
naming - the java naming to use
Method Detail

createAddByIndexMethod

protected void createAddByIndexMethod(CollectionInfo fieldInfo,
                                      JClass jClass)
Creates the add by index method. supresses the method creation

Overrides:
createAddByIndexMethod in class CollectionMemberAndAccessorFactory
Parameters:
fieldInfo - the collectionInfo to translate
jClass - the jClass to add the method to.

createGetByIndexMethod

protected void createGetByIndexMethod(CollectionInfo fieldInfo,
                                      JClass jClass)
Creates the get by index method. supresses the method creation

Overrides:
createGetByIndexMethod in class CollectionMemberAndAccessorFactory
Parameters:
fieldInfo - the collectionInfo to translate
jClass - the jClass to add the method to.

createSetByIndexMethod

protected void createSetByIndexMethod(CollectionInfo fieldInfo,
                                      JClass jClass)
Creates the set by index method. supresses the method creation

Overrides:
createSetByIndexMethod in class CollectionMemberAndAccessorFactory
Parameters:
fieldInfo - the collectionInfo to translate
jClass - the jClass to add the method to.

createRemoveByIndexMethod

protected void createRemoveByIndexMethod(CollectionInfo fieldInfo,
                                         JClass jClass)
Creates the remove by index method. supresses the method creation

Overrides:
createRemoveByIndexMethod in class CollectionMemberAndAccessorFactory
Parameters:
fieldInfo - the collectionInfo to translate
jClass - the jClass to add the method to.


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