|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.factory.FieldMemberAndAccessorFactory
public class FieldMemberAndAccessorFactory
This factory takes a FieldInfo and generates the suitable JFields (and optional the getter and setter methods) into the JClass.
Constructor Summary | |
---|---|
FieldMemberAndAccessorFactory(JavaNaming naming)
Creates a factory that offers public methods to create the field initialization code as well as the getter/setter methods. |
Method Summary | |
---|---|
void |
createAccessMethods(FieldInfo fieldInfo,
JClass jClass,
boolean useJava50,
AnnotationBuilder[] annotationBuilders)
Adds the getter/setter for this field to the jClass. |
void |
createJavaField(FieldInfo fieldInfo,
JClass jClass)
Adds the suitable JField to the JClass. |
void |
generateInitializerCode(FieldInfo fieldInfo,
JSourceCode jsc)
Creates the field initialization code in a constructor. |
JavaNaming |
getJavaNaming()
Returns the javaNaming. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldMemberAndAccessorFactory(JavaNaming naming)
naming
- JavaNaming to useMethod Detail |
---|
public void generateInitializerCode(FieldInfo fieldInfo, JSourceCode jsc)
fieldInfo
- the fieldInfo to translatejsc
- the JSourceCode in which to add the source topublic final void createJavaField(FieldInfo fieldInfo, JClass jClass)
fieldInfo
- the fieldInfo to translatejClass
- the jclass the jField will be added topublic void createAccessMethods(FieldInfo fieldInfo, JClass jClass, boolean useJava50, AnnotationBuilder[] annotationBuilders)
fieldInfo
- the fieldInfo to translatejClass
- the jclass the jField will be added touseJava50
- java version flagpublic JavaNaming getJavaNaming()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |