public class GenericDesignFactory extends java.lang.Object implements DesignFactory
DesignFactory
that creates a DesignInstance
from the properties of a class and it'sConstructor and Description |
---|
GenericDesignFactory(ArooaClass forClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DesignInstance |
createDesign(ArooaElement element,
ArooaContext parentContext)
Create a
DesignInstance . |
DesignProperty[] |
designProperties(DesignInstance design)
Create the
DesignProperty s for a design. |
public GenericDesignFactory(ArooaClass forClass)
forClass
- The class. Must not be null.public DesignInstance createDesign(ArooaElement element, ArooaContext parentContext) throws ArooaPropertyException
DesignFactory
DesignInstance
.createDesign
in interface DesignFactory
element
- The ArooaElement corresponding to the design.parentContext
- The parent ArooaContext in which to
create the design.ArooaPropertyException
public DesignProperty[] designProperties(DesignInstance design)
DesignProperty
s for a design.design
- The design.