public final class ModelBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeHandlers(Properties p)
Adds attribute handlers.
|
DescriptionModel |
buildModel(SourceCollector c,
DescriptionModel model)
Builds a model from the classes provided by the
SourceCollector. |
PropertyInfo |
createSimplePropertyInfo(PropertyDescriptor pd)
Creates a
PropertyInfo object from a PropertyDescriptor. |
static ModelBuilder |
getInstance()
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.
|
public static ModelBuilder getInstance()
public void addAttributeHandlers(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(Method method)
method - the method descriptorpublic PropertyInfo createSimplePropertyInfo(PropertyDescriptor pd)
PropertyInfo object from a PropertyDescriptor.pd - the property descriptor.null possible).Copyright © 2009-2012 jtstand.com. All Rights Reserved.