EnumerationFactory
, MemberFactory
, SourceFactory
public class BaseFactory
extends java.lang.Object
Constructor | Description |
---|---|
BaseFactory(BuilderConfiguration config,
FieldInfoFactory infoFactory,
GroupNaming groupNaming,
SourceGenerator sourceGenerator) |
Creates an instance of this class.
|
Modifier and Type | Method | Description |
---|---|---|
protected java.lang.String |
createComment(Annotated annotated) |
Creates and returns a Javadoc comment from the given annotations.
|
protected java.lang.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 java.lang.String |
normalize(java.lang.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 java.lang.String normalize(java.lang.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 java.lang.String createComment(Annotated annotated)
annotated
- The Annotated
instance holding annotations.protected java.lang.String extractCommentsFromAnnotations(Annotated annotated)
annotated
- the Annotated structure to processpublic final JavaNaming getJavaNaming()
JavaNaming
to be used.JavaNaming
instance to be usedIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com