|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.component.ComponentTemplate
Provides a configurable Component Template that can be used by the MasterTemplateEditor.
XML Configuration Template:
<ComponentConfig name="[ name of component ]"
type="[ interface type of component ]"
interfaceClass="[ interface class of component ]" >
<!-- Simple attribute=value parameters that are inserted into the Configuration Template using {[configKey]} patterns. -->
<Attributes>
<!-- one or more Attribute elements: -->
<Attribute name="[ parameter name ]"
displayName="[ display name on configuration UI ]"
configKey="[ name in {key} pattern in Configuration template ]"
description="[ description of the Attribute ]"
required="[ true|false ]"
choices="[ pipe (|) delimited list of valid choices for values ]"
pattern="[ string pattern for final version (used for optional attributes) ]" />
</Attributes>
<!-- Complex sections may use a configuration tag. -->
<Tags>
<!-- one or more Tag elements: -->
<Tag name="[ display name in configuration UI ]"
configKey="[ name in {key} pattern in main Configuration Template ]"
multiple="[ true|false( default ) - if true, can have more than one tag output ]" />
<!-- one or more Attribute elements: -->
<Attribute name="[ display name in configuration UI ]"
configKey="[ name in {key} pattern in local Tag Template ]" />
<!-- . . . -->
<TagTemplate>
<![CDATA[
tag template XML goes here with {key} placeholders for attributes ...
]]>
</TagTemplate>
</Tag>
</Tags>
<NestedComponents>
<!-- pointers to other component template files ... -->
<Component name="[ display name of the Element ]"
interfaceClass="[ fully qualified IConfigurable Interface class name ]"
required="[ true|false ]"
multiple="[ true|false ]"
configKey="[ name that matches {key} section in the master template ]"
templateFile="[ name of component template file (if no choice available) ]" >
<!-- IXMLDataSource that contains a set of ComponentTemplate(s) that could be -->
<!-- used for this Component. (Not required if 'templateFile' attribute is set). -->
<TemplateSource class="[ class of IXMLDataSource ]" >
</TemplateSource>
</Component>
</NestedComponents>
<ComponentTemplate>
<![CDATA[
Component XML configuration Template with {key} placeholders for attributes and tag elements...
]]>
</ComponentTemplate>
</ComponentConfig>
| Constructor Summary | |
ComponentTemplate()
|
|
| Method Summary | |
void |
addTag(java.lang.String tagName)
|
boolean |
canAdd(java.lang.String tagName)
|
OrderedMap |
getAttributes()
|
java.lang.String |
getConfigurationXML()
|
IConfigurable |
getConfiguredObject()
|
IConfigurable |
getConfiguredObject(java.lang.String objectName)
Returns a configured object given an object name. |
java.util.Iterator |
getConfiguredObjectNames()
Returns a list of the configured objects that are available. |
org.w3c.dom.Element |
getInitializer()
|
org.w3c.dom.Element |
getInitializer(java.lang.String objectName)
Used by Configurable objects that need to have their own constructor. |
java.lang.String |
getInterfaceClass()
|
java.lang.String |
getName()
|
com.raritantechnologies.searchApp.component.FrameworkComponent |
getNestedComponent(java.lang.String componentName)
|
java.util.Iterator |
getNestedComponentNames()
|
java.util.Iterator |
getTagNames()
|
java.util.Iterator |
getTags(java.lang.String tagName)
|
java.lang.String |
getType()
|
boolean |
hasConfiguredObject(java.lang.String objectName)
Does this ConfigurableFactory support multiple Configurable Objects? |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
boolean |
isInitialized()
|
boolean |
isMultiple(java.lang.String componentName)
|
boolean |
isRequired(java.lang.String componentName)
|
void |
removeTag(java.lang.String tagName,
int index)
|
void |
setConfigElement(org.w3c.dom.Element elem)
|
void |
setMasterTemplateEditor(MasterTemplateEditor masterEditor)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComponentTemplate()
| Method Detail |
public java.lang.String getName()
public java.lang.String getType()
public java.lang.String getInterfaceClass()
public IConfigurable getConfiguredObject()
getConfiguredObject in interface IConfigurableFactorypublic boolean hasConfiguredObject(java.lang.String objectName)
IConfigurableFactory
hasConfiguredObject in interface IConfigurableFactorypublic java.util.Iterator getConfiguredObjectNames()
getConfiguredObjectNames in interface IConfigurableFactorypublic boolean isInitialized()
isInitialized in interface IConfigurableFactorypublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurableFactorypublic void setMasterTemplateEditor(MasterTemplateEditor masterEditor)
public IConfigurable getConfiguredObject(java.lang.String objectName)
getConfiguredObject in interface IConfigurableFactorypublic void setConfigElement(org.w3c.dom.Element elem)
setConfigElement in interface IConfigurableFactorypublic org.w3c.dom.Element getInitializer()
getInitializer in interface IConfigurableFactorypublic java.lang.String getConfigurationXML()
public org.w3c.dom.Element getInitializer(java.lang.String objectName)
IConfigurableFactory
getInitializer in interface IConfigurableFactorypublic OrderedMap getAttributes()
public java.util.Iterator getTagNames()
public java.util.Iterator getTags(java.lang.String tagName)
public boolean canAdd(java.lang.String tagName)
public void addTag(java.lang.String tagName)
public void removeTag(java.lang.String tagName,
int index)
public java.util.Iterator getNestedComponentNames()
public com.raritantechnologies.searchApp.component.FrameworkComponent getNestedComponent(java.lang.String componentName)
public boolean isRequired(java.lang.String componentName)
public boolean isMultiple(java.lang.String componentName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||