Class MemberFactory
java.lang.Object
org.exolab.castor.builder.factory.BaseFactory
org.exolab.castor.builder.factory.MemberFactory
The "Factory" responsible for creating fields for the given schema components.
- Version:
- $Revision: 9147 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Keith Visco
-
Constructor Summary
ConstructorsConstructorDescriptionMemberFactory(BuilderConfiguration config, FieldInfoFactory infoFactory, GroupNaming groupNaming, SourceGenerator sourceGenerator) Creates a new MemberFactory using the given FieldInfo factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateFieldInfo(XMLBindingComponent component, ClassInfoResolver resolver, boolean useJava50) Creates a FieldInfo object for the given XMLBindingComponent.createFieldInfoForAny(Wildcard any, boolean useJava50) Creates a FieldInfo for content models that support "any" element.Creates a FieldInfo to hold the value of a choice.createFieldInfoForContent(XMLBindingComponent component, XSType xsType, boolean useJava50) Creates a FieldInfo for content.Methods inherited from class BaseFactory
createComment, extractCommentsFromAnnotations, getConfig, getGroupNaming, getInfoFactory, getJavaNaming, getSourceGenerator, normalize, setGroupNamingModifier and TypeMethodDescriptionprotected StringcreateComment(Annotated annotated) Creates and returns a Javadoc comment from the given annotations.protected StringextractCommentsFromAnnotations(Annotated annotated) Creates Comments from Schema annotations.protected final BuilderConfigurationGet BuilderConfiguration instance, for callbacks to obtain certain configured properties.final GroupNamingReturns the group naming helper class for naming nested anonymous groups.protected final FieldInfoFactoryGet type factory.final JavaNamingTo get theJavaNamingto be used.protected SourceGeneratorReturns the callingSourceGeneratorinstance.protected final StringNormalizes the given string for use in comments.final voidsetGroupNaming(GroupNaming groupNaming) Sets the group naming helper class for naming nested anonymous groups.
-
Constructor Details
-
MemberFactory
public MemberFactory(BuilderConfiguration config, FieldInfoFactory infoFactory, GroupNaming groupNaming, SourceGenerator sourceGenerator) Creates a new MemberFactory using the given FieldInfo factory.- Parameters:
config- the BuilderConfigurationinfoFactory- the FieldInfoFactory to usegroupNaming- Grou pnaming scheme to be used.sourceGenerator- Calling source generator
-
-
Method Details
-
createFieldInfoForAny
-
createFieldInfoForChoiceValue
Creates a FieldInfo to hold the value of a choice.- Returns:
- the new FieldInfo
-
createFieldInfoForContent
public FieldInfo createFieldInfoForContent(XMLBindingComponent component, XSType xsType, boolean useJava50) Creates a FieldInfo for content.- Parameters:
component-XMLBindingComponentinstance for accessing binding information.xsType- the type of contentuseJava50- if true, code will be generated for Java 5- Returns:
- the new FieldInfo
-
createFieldInfo
public FieldInfo createFieldInfo(XMLBindingComponent component, ClassInfoResolver resolver, boolean useJava50) Creates a FieldInfo object for the given XMLBindingComponent.- Parameters:
component- the XMLBindingComponent to create the FieldInfo forresolver- resolver to use to find ClassInfouseJava50- if true, code will be generated for Java 5- Returns:
- the FieldInfo for the given attribute declaration
-