org.jfree.xml.generator.model
Class DescriptionModel
java.lang.Object
org.jfree.xml.generator.model.DescriptionModel
A model containing class descriptions.
DescriptionModel
public DescriptionModel()
Creates a new class description model.
addIncludeComment
public void addIncludeComment(String source,
Comments comments)
Adds an include comment.
source
- the source.comments
- the comments.
addSource
public void addSource(String source)
Adds a source to the model description.
get
public ClassDescription get(Class key)
Returns a class description for the given class name.
get
public ClassDescription get(int index)
Returns a class description.
index
- the description index (zero-based).
getSources
public String[] getSources()
Returns the sources for the model description.
prune
public void prune()
Removes any class descriptions that are not fully defined.
setModelComments
public void setModelComments(Comments modelComments)
Sets the model comments.
modelComments
- the model comments.
size
public int size()
Returns the number of classes in the model.
- the number of classes in the model.