Class EnumerationFactory
java.lang.Object
org.exolab.castor.builder.factory.BaseFactory
org.exolab.castor.builder.factory.EnumerationFactory
This class creates the Java sources for XML Schema components that define an
enumeration.
- Version:
- $Revision: 6287 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Werner Guttmann
-
Constructor Summary
ConstructorsConstructorDescriptionEnumerationFactory(BuilderConfiguration config, GroupNaming groupNaming, SourceGenerator sourceGenerator) Creates a new EnumerationFactory for the builder configuration given. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCaseInsensitive(boolean caseInsensitive) Set to true if enumerated type lookups should be performed in a case insensitive manner.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
-
EnumerationFactory
public EnumerationFactory(BuilderConfiguration config, GroupNaming groupNaming, SourceGenerator sourceGenerator) Creates a new EnumerationFactory for the builder configuration given.- Parameters:
config- the current BuilderConfiguration instance.groupNaming- The group naming scheme to be used.sourceGenerator- the calling source generator.
-
-
Method Details
-
setCaseInsensitive
public void setCaseInsensitive(boolean caseInsensitive) Set to true if enumerated type lookups should be performed in a case insensitive manner.- Parameters:
caseInsensitive- when true
-