public final class ModelBuilder extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addAttributeHandlers(java.util.Properties p)
Adds attribute handlers.
|
DescriptionModel |
buildModel(SourceCollector c,
DescriptionModel model)
Builds a model from the classes provided by the
SourceCollector . |
PropertyInfo |
createSimplePropertyInfo(java.beans.PropertyDescriptor pd)
Creates a
PropertyInfo object from a PropertyDescriptor . |
static ModelBuilder |
getInstance()
Returns the single instance of this class.
|
static boolean |
isValidMethod(java.lang.reflect.Method method)
Checks, whether the given method can be called from the generic object factory.
|
public static ModelBuilder getInstance()
public void addAttributeHandlers(java.util.Properties p)
p
- the handlers.public DescriptionModel buildModel(SourceCollector c, DescriptionModel model)
SourceCollector
.
The DescriptionGenerator
class invokes this.
c
- the source collector.model
- the model under construction (null
permitted).public static boolean isValidMethod(java.lang.reflect.Method method)
method
- the method descriptorpublic PropertyInfo createSimplePropertyInfo(java.beans.PropertyDescriptor pd)
PropertyInfo
object from a PropertyDescriptor
.pd
- the property descriptor.null
possible).