org.exolab.castor.builder.factory
Class BaseFactory
java.lang.Object
org.exolab.castor.builder.factory.BaseFactory
public class BaseFactory
extends java.lang.Object
This class defines a base type for the source generator code factory classes.
$Revision: 6287 $ $Date: $
BaseFactory
public BaseFactory(BuilderConfiguration config,
FieldInfoFactory infoFactory,
GroupNaming groupNaming,
SourceGenerator sourceGenerator)
Creates an instance of this class.
config
- XML code generator configurationinfoFactory
- the FieldInfoFactory to usegroupNaming
- Group naming scheme to be used.sourceGenerator
- The calling source generator.
createComment
protected String createComment(Annotated annotated)
Creates and returns a Javadoc comment from the given annotations.
annotated
- The Annotated
instance holding annotations.
- The Javadoc comment created from the annotations.
extractCommentsFromAnnotations
protected String extractCommentsFromAnnotations(Annotated annotated)
Creates Comments from Schema annotations.
annotated
- the Annotated structure to process
getConfig
protected final BuilderConfiguration getConfig()
Get BuilderConfiguration instance, for callbacks to obtain certain configured properties.
- BuilderConfiguration instance.
getGroupNaming
public final GroupNaming getGroupNaming()
Returns the group naming helper class for naming nested anonymous groups.
- the group naming helper class for naming nested anonymous groups.
getInfoFactory
protected final FieldInfoFactory getInfoFactory()
Get type factory.
getJavaNaming
public final JavaNaming getJavaNaming()
getSourceGenerator
protected SourceGenerator getSourceGenerator()
- the calling source generator
normalize
protected final String normalize(String value)
Normalizes the given string for use in comments.
value
- the String to normalize
- the given string, normalized, for use in comments.
setGroupNaming
public final void setGroupNaming(GroupNaming groupNaming)
Sets the group naming helper class for naming nested anonymous groups.
groupNaming
- the group naming helper class for naming nested anonymous groups.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com