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 CollectionJ2MemberAndAccessorFactory
createAddMethod, createCollectionIterationMethods, createEnumerateMethodModifier and TypeMethodDescriptionprotected final voidcreateAddMethod(CollectionInfo fieldInfo, JClass jClass) Creates the add method for this collection.protected final voidcreateCollectionIterationMethods(CollectionInfo fieldInfo, JClass jClass, boolean useJava50) Generate methods for iterating over the objects in the collection.protected final voidcreateEnumerateMethod(CollectionInfo fieldInfo, JClass jClass, boolean useJava50) Creates the enumerate method.Methods inherited from class CollectionMemberAndAccessorFactory
addMaxSizeCheck, createAccessMethods, createBoundPropertyCode, createGetByIndexMethod, createIteratorMethod, generateInitializerCodeModifier and TypeMethodDescriptionprotected voidaddMaxSizeCheck(CollectionInfo fieldInfo, String methodName, JSourceCode sourceCode) Creates the add max size check.final voidcreateAccessMethods(FieldInfo fieldInfo, JClass jClass, boolean useJava50, AnnotationBuilder[] annotationBuilders) Adds the getter/setter for this field to the jClass.protected voidcreateBoundPropertyCode(CollectionInfo fieldInfo, JSourceCode sourceCode) Creates bound property code..protected voidcreateGetByIndexMethod(CollectionInfo fieldInfo, JClass jClass, boolean useJava50) Creates the get by index method.protected voidcreateIteratorMethod(CollectionInfo fieldInfo, JClass jClass, boolean useJava50) Creates the iterate method.voidgenerateInitializerCode(FieldInfo fieldInfo, JSourceCode sourceCode) Creates the field initialization code in a constructor.Methods inherited from class FieldMemberAndAccessorFactory
createJavaField, getJavaNaming, setUseOldFieldNamingModifier and TypeMethodDescriptionfinal voidcreateJavaField(FieldInfo fieldInfo, JClass jClass) Adds the suitable JField to the JClass.Returns the javaNaming.voidsetUseOldFieldNaming(boolean useOldFieldNaming)
-
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.
-