public class ComponentGenerationContext
extends java.lang.Object
ComponentsFactory.| Constructor and Description |
|---|
ComponentGenerationContext(MetaClass metaClass,
java.lang.String property)
Creates an instance of ComponentGenerationContext.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getComponentClass() |
Datasource |
getDatasource() |
MetaClass |
getMetaClass() |
CollectionDatasource |
getOptionsDatasource() |
java.lang.String |
getProperty() |
org.dom4j.Element |
getXmlDescriptor() |
ComponentGenerationContext |
setComponentClass(java.lang.Class componentClass)
Sets a component class for which a component is created, using fluent API method.
|
ComponentGenerationContext |
setDatasource(Datasource datasource)
Sets a datasource, using fluent API method.
|
ComponentGenerationContext |
setMetaClass(MetaClass metaClass)
Sets the entity for which the component is created, using fluent API method.
|
ComponentGenerationContext |
setOptionsDatasource(CollectionDatasource optionsDatasource)
Sets a datasource that can be used to show options, using fluent API method.
|
ComponentGenerationContext |
setProperty(java.lang.String property)
Sets the entity attribute for which the component is created, using fluent API method.
|
ComponentGenerationContext |
setXmlDescriptor(org.dom4j.Element xmlDescriptor)
Sets an XML descriptor which contains additional information, using fluent API method.
|
public ComponentGenerationContext(MetaClass metaClass, java.lang.String property)
metaClass - the entity for which the component is createdproperty - the entity attribute for which the component is createdpublic MetaClass getMetaClass()
public ComponentGenerationContext setMetaClass(MetaClass metaClass)
metaClass - the entity for which the component is createdpublic java.lang.String getProperty()
public ComponentGenerationContext setProperty(java.lang.String property)
property - the entity attribute for which the component is created@Nullable public Datasource getDatasource()
public ComponentGenerationContext setDatasource(Datasource datasource)
datasource - a datasource@Nullable public CollectionDatasource getOptionsDatasource()
public ComponentGenerationContext setOptionsDatasource(CollectionDatasource optionsDatasource)
optionsDatasource - a datasource that can be used as optional to create the component@Nullable public org.dom4j.Element getXmlDescriptor()
public ComponentGenerationContext setXmlDescriptor(org.dom4j.Element xmlDescriptor)
xmlDescriptor - an XML descriptor which contains additional information@Nullable public java.lang.Class getComponentClass()
public ComponentGenerationContext setComponentClass(java.lang.Class componentClass)
componentClass - a component class for which a component is created