org.jfree.xml.generator.model
Class DescriptionModel

java.lang.Object
  extended byorg.jfree.xml.generator.model.DescriptionModel

public class DescriptionModel
extends java.lang.Object

A model containing class descriptions.


Constructor Summary
DescriptionModel()
          Creates a new class description model.
 
Method Summary
 void addClassDescription(ClassDescription cd)
          Adds a class description to the model.
 void addIncludeComment(java.lang.String source, Comments comments)
           
 void addSource(java.lang.String source)
           
 ClassDescription get(java.lang.Class key)
          Returns a class description for the given class name.
 ClassDescription get(int index)
          Returns a class description.
 Comments getIncludeComment(java.lang.String source)
           
 MappingModel getMappingModel()
          Returns the mapping model.
 Comments getModelComments()
           
 java.lang.String[] getSources()
           
 void prune()
           
 void removeClassDescription(ClassDescription cd)
          Removes a class description from the model.
 void setModelComments(Comments modelComments)
           
 int size()
          Returns the number of classes in the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptionModel

public DescriptionModel()
Creates a new class description model.

Method Detail

addClassDescription

public void addClassDescription(ClassDescription cd)
Adds a class description to the model.

Parameters:
cd - the class description.

removeClassDescription

public void removeClassDescription(ClassDescription cd)
Removes a class description from the model.

Parameters:
cd - the class description.

get

public ClassDescription get(int index)
Returns a class description.

Parameters:
index - the description index (zero-based).
Returns:
a class description.

get

public ClassDescription get(java.lang.Class key)
Returns a class description for the given class name.

Parameters:
key - the class name.
Returns:
the class description.

size

public int size()
Returns the number of classes in the model.

Returns:
the number of classes in the model.

getMappingModel

public MappingModel getMappingModel()
Returns the mapping model.

Returns:
the mapping model.

addSource

public void addSource(java.lang.String source)

getSources

public java.lang.String[] getSources()

prune

public void prune()

addIncludeComment

public void addIncludeComment(java.lang.String source,
                              Comments comments)

getIncludeComment

public Comments getIncludeComment(java.lang.String source)

getModelComments

public Comments getModelComments()

setModelComments

public void setModelComments(Comments modelComments)