Class CollectionJ2NoIndexMemberAndAccessorFactory
java.lang.Object
org.exolab.castor.builder.factory.FieldMemberAndAccessorFactory
org.exolab.castor.builder.factory.CollectionMemberAndAccessorFactory
org.exolab.castor.builder.factory.CollectionJ2MemberAndAccessorFactory
org.exolab.castor.builder.factory.CollectionJ2NoIndexMemberAndAccessorFactory
public class CollectionJ2NoIndexMemberAndAccessorFactory
extends CollectionJ2MemberAndAccessorFactory
A Factory that avoids the creation of the index methods.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CollectionJ2NoIndexMemberAndAccessorFactory. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateAddByIndexMethod(CollectionInfo fieldInfo, JClass jClass) Creates the add by index method.protected voidcreateGetByIndexMethod(CollectionInfo fieldInfo, JClass jClass) supresses the method creationprotected voidcreateRemoveByIndexMethod(CollectionInfo fieldInfo, JClass jClass) Creates the remove by index method.protected voidcreateSetByIndexMethod(CollectionInfo fieldInfo, JClass jClass) Creates the set by index method.Methods inherited from class org.exolab.castor.builder.factory.CollectionJ2MemberAndAccessorFactory
createAddMethod, createCollectionIterationMethods, createEnumerateMethodMethods inherited from class org.exolab.castor.builder.factory.CollectionMemberAndAccessorFactory
addMaxSizeCheck, createAccessMethods, createBoundPropertyCode, createGetByIndexMethod, createIteratorMethod, generateInitializerCodeMethods inherited from class org.exolab.castor.builder.factory.FieldMemberAndAccessorFactory
createJavaField, getJavaNaming, setUseOldFieldNaming
-
Constructor Details
-
CollectionJ2NoIndexMemberAndAccessorFactory
Creates a new CollectionJ2NoIndexMemberAndAccessorFactory.- Parameters:
naming- the java naming to use
-
-
Method Details
-
createAddByIndexMethod
Creates the add by index method. supresses the method creation- Overrides:
createAddByIndexMethodin classCollectionMemberAndAccessorFactory- Parameters:
fieldInfo- the collectionInfo to translatejClass- the jClass to add the method to.
-
createGetByIndexMethod
supresses the method creation -
createSetByIndexMethod
Creates the set by index method. supresses the method creation- Overrides:
createSetByIndexMethodin classCollectionMemberAndAccessorFactory- Parameters:
fieldInfo- the collectionInfo to translatejClass- the jClass to add the method to.
-
createRemoveByIndexMethod
Creates the remove by index method. supresses the method creation- Overrides:
createRemoveByIndexMethodin classCollectionMemberAndAccessorFactory- Parameters:
fieldInfo- the collectionInfo to translatejClass- the jClass to add the method to.
-