public class BaseFactory extends Object
Constructor and Description |
---|
BaseFactory(BuilderConfiguration config,
FieldInfoFactory infoFactory,
GroupNaming groupNaming,
SourceGenerator sourceGenerator)
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected String |
createComment(Annotated annotated)
Creates and returns a Javadoc comment from the given annotations.
|
protected String |
extractCommentsFromAnnotations(Annotated annotated)
Creates Comments from Schema annotations.
|
protected BuilderConfiguration |
getConfig()
Get BuilderConfiguration instance, for callbacks to obtain certain configured properties.
|
GroupNaming |
getGroupNaming()
Returns the group naming helper class for naming nested anonymous groups.
|
protected FieldInfoFactory |
getInfoFactory()
Get type factory.
|
JavaNaming |
getJavaNaming()
To get the
JavaNaming to be used. |
protected SourceGenerator |
getSourceGenerator()
Returns the calling
SourceGenerator instance. |
protected String |
normalize(String value)
Normalizes the given string for use in comments.
|
void |
setGroupNaming(GroupNaming groupNaming)
Sets the group naming helper class for naming nested anonymous groups.
|
public BaseFactory(BuilderConfiguration config, FieldInfoFactory infoFactory, GroupNaming groupNaming, SourceGenerator sourceGenerator)
config
- XML code generator configurationinfoFactory
- the FieldInfoFactory to usegroupNaming
- Group naming scheme to be used.sourceGenerator
- The calling source generator.protected final BuilderConfiguration getConfig()
protected final FieldInfoFactory getInfoFactory()
protected final String normalize(String value)
value
- the String to normalizepublic final GroupNaming getGroupNaming()
public final void setGroupNaming(GroupNaming groupNaming)
groupNaming
- the group naming helper class for naming nested anonymous groups.protected SourceGenerator getSourceGenerator()
SourceGenerator
instance.protected String createComment(Annotated annotated)
annotated
- The Annotated
instance holding annotations.protected String extractCommentsFromAnnotations(Annotated annotated)
annotated
- the Annotated structure to processpublic final JavaNaming getJavaNaming()
JavaNaming
to be used.JavaNaming
instance to be usedCopyright © 2018. All rights reserved.