com.raritantechnologies.searchApp.component
Class Attribute
java.lang.Object
com.raritantechnologies.searchApp.component.Attribute
- All Implemented Interfaces:
- IConfigurable
- public class Attribute
- extends java.lang.Object
- implements IConfigurable
|
Constructor Summary |
Attribute(java.lang.String name,
java.lang.String display,
java.lang.String[] selectValues,
java.lang.String description,
boolean isRequired)
|
Attribute(java.lang.String name,
java.lang.String display,
java.lang.String type,
java.lang.String description,
boolean isRequired)
|
|
Method Summary |
java.lang.String |
getDescription()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getName()
|
java.lang.String[] |
getSelectValues()
|
java.lang.String |
getType()
STRING, INTEGER, BOOLEAN, SELECT, STRING_ARRAY, Interface class or Java 1.5 type (for maps, arrays, etc). |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
boolean |
isRequired()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Attribute
public Attribute(java.lang.String name,
java.lang.String display,
java.lang.String type,
java.lang.String description,
boolean isRequired)
Attribute
public Attribute(java.lang.String name,
java.lang.String display,
java.lang.String[] selectValues,
java.lang.String description,
boolean isRequired)
getName
public java.lang.String getName()
getDisplayName
public java.lang.String getDisplayName()
getType
public java.lang.String getType()
- STRING, INTEGER, BOOLEAN, SELECT, STRING_ARRAY, Interface class or Java 1.5 type (for maps, arrays, etc).
getDescription
public java.lang.String getDescription()
isRequired
public boolean isRequired()
getSelectValues
public java.lang.String[] getSelectValues()
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable