Package org.jfree.xml.generator
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 TypeMethodDescriptionvoid
Adds attribute handlers.buildModel
(SourceCollector c, DescriptionModel model) Builds a model from the classes provided by theSourceCollector
.Creates aPropertyInfo
object from aPropertyDescriptor
.static ModelBuilder
Returns the single instance of this class.static boolean
isValidMethod
(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
DescriptionGenerator
class invokes this.- Parameters:
c
- the source collector.model
- the model under construction (null
permitted).- 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 aPropertyInfo
object from aPropertyDescriptor
.- Parameters:
pd
- the property descriptor.- Returns:
- the property info (
null
possible).
-