Class CollectionODMG30MemberAndAccessorFactory
java.lang.Object
org.exolab.castor.builder.factory.FieldMemberAndAccessorFactory
org.exolab.castor.builder.factory.CollectionMemberAndAccessorFactory
org.exolab.castor.builder.factory.CollectionODMG30MemberAndAccessorFactory
A JField factory for CollectionODMG30Member.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CollectionODMG30MemberAndAccessorFactory. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateEnumerateMethod(CollectionInfo fieldInfo, JClass jClass, boolean useJava50) Creates the enumerate method.voidgenerateInitializerCode(FieldInfo fieldInfo, JSourceCode jsc) Creates the field initialization code in a constructor.Methods inherited from class CollectionMemberAndAccessorFactory
addMaxSizeCheck, createAccessMethods, createAddByIndexMethod, createAddMethod, createBoundPropertyCode, createCollectionIterationMethods, createGetByIndexMethod, createIteratorMethod, createRemoveByIndexMethod, createSetByIndexMethodModifier 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 voidcreateAddByIndexMethod(CollectionInfo fieldInfo, JClass jClass) Creates the add by index method.protected voidcreateAddMethod(CollectionInfo fieldInfo, JClass jClass) Creates the add method for this collection.protected voidcreateBoundPropertyCode(CollectionInfo fieldInfo, JSourceCode sourceCode) Creates bound property code..protected voidcreateCollectionIterationMethods(CollectionInfo fieldInfo, JClass jClass, boolean useJava50) Generate methods for iterating over the objects in the collection.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.protected 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 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
-
CollectionODMG30MemberAndAccessorFactory
Creates a new CollectionODMG30MemberAndAccessorFactory.- Parameters:
naming- the javaNaming to use
-
-
Method Details
-
generateInitializerCode
Creates the field initialization code in a constructor.- Overrides:
generateInitializerCodein classCollectionMemberAndAccessorFactory- Parameters:
fieldInfo- the fieldInfo to translatejsc- the JSourceCode in which to add the source to
-
createEnumerateMethod
Creates the enumerate method.- Overrides:
createEnumerateMethodin classCollectionMemberAndAccessorFactory- Parameters:
fieldInfo- the collectionInfo to translatejClass- the jClass to add the method to.useJava50- java version flag
-