Class ModelBuilder
java.lang.Object
org.jfree.xml.generator.ModelBuilder
A model builder. This class performs the work of creating a class description model from
a set of source files.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds attribute handlers.buildModel(SourceCollector c, DescriptionModel model) Builds a model from the classes provided by theSourceCollector.Creates aPropertyInfoobject from aPropertyDescriptor.static ModelBuilderReturns the single instance of this class.static booleanisValidMethod(Method method) Checks, whether the given method can be called from the generic object factory.
-
Method Details
-
getInstance
Returns the single instance of this class.- Returns:
- the single instance of this class.
-
addAttributeHandlers
Adds attribute handlers.- Parameters:
p- the handlers.
-
buildModel
Builds a model from the classes provided by theSourceCollector.The
DescriptionGeneratorclass invokes this.- Parameters:
c- the source collector.model- the model under construction (nullpermitted).- Returns:
- The completed model.
-
isValidMethod
Checks, whether the given method can be called from the generic object factory.- Parameters:
method- the method descriptor- Returns:
- true, if the method is not null and public, false otherwise.
-
createSimplePropertyInfo
Creates aPropertyInfoobject from aPropertyDescriptor.- Parameters:
pd- the property descriptor.- Returns:
- the property info (
nullpossible).
-