org.exolab.castor.builder.factory
Class FieldMemberAndAccessorFactory
java.lang.Object
org.exolab.castor.builder.factory.FieldMemberAndAccessorFactory
public class FieldMemberAndAccessorFactory
extends java.lang.Object
This factory takes a FieldInfo and generates the suitable JFields
(and optional the getter and setter methods) into the JClass.
FieldMemberAndAccessorFactory
public FieldMemberAndAccessorFactory(JavaNaming naming)
Creates a factory that offers public methods to create the
field initialization code as well as the getter/setter methods.
naming
- JavaNaming to use
createAccessMethods
public void createAccessMethods(FieldInfo fieldInfo,
JClass jClass,
boolean useJava50,
AnnotationBuilder[] annotationBuilders)
Adds the getter/setter for this field to the jClass.
fieldInfo
- the fieldInfo to translatejClass
- the jclass the jField will be added touseJava50
- java version flag
createJavaField
public final void createJavaField(FieldInfo fieldInfo,
JClass jClass)
Adds the suitable JField to the JClass.
fieldInfo
- the fieldInfo to translatejClass
- the jclass the jField will be added to
generateInitializerCode
public void generateInitializerCode(FieldInfo fieldInfo,
JSourceCode jsc)
Creates the field initialization code in a constructor.
fieldInfo
- the fieldInfo to translatejsc
- the JSourceCode in which to add the source to
getJavaNaming
public JavaNaming getJavaNaming()
Returns the javaNaming.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com