|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.DTSContainerPropertiesHelper
public class DTSContainerPropertiesHelper
This class holds a static configuration of DTSContainer properties in order to help in the development of GUIs about which properties belongs to every processor and which are the allowed property values.
| Method Summary | |
|---|---|
static void |
addProperty(java.lang.String processor,
java.lang.String propertyName,
java.lang.String propertyDescriptionOnGui,
java.lang.String propertyToolTip,
java.lang.Object defaultValue,
java.lang.Object... values)
Adds a property to the database and registers the property values, by convention, the first value is the default value. |
static java.lang.String |
getProcessorNameOnGui(java.lang.String processorName)
Access to the processor name on GUIs. |
static java.lang.String[] |
getProcessorNames()
|
static java.lang.String |
getProcessorProperty(java.lang.String propertyName)
Access to the processor the property belongs to. |
static java.lang.String |
getProcessorToolTip(java.lang.String processorName)
Access to the processor tool tip on GUIs. |
static java.lang.Object |
getPropertyDefaultValue(java.lang.String propertyName)
Access to the property descriptive text |
static java.lang.Object |
getPropertyDefaultValue(java.lang.String processorName,
java.lang.String propertyName)
Access to the property default value registered for a specific processor. |
static java.lang.String |
getPropertyDescription(java.lang.String propertyName)
Access to the property descriptive text |
static java.lang.String |
getPropertyDescription(java.lang.String processorName,
java.lang.String propertyName)
Access to the property descriptive text registered for a specific processor. |
static java.lang.String[] |
getPropertyNames(java.lang.String processorName)
Access to an array of property names registered for a single processor |
static java.lang.String |
getPropertyToolTip(java.lang.String propertyName)
Access to the property descriptive text |
static java.lang.String |
getPropertyToolTip(java.lang.String processorName,
java.lang.String propertyName)
Access to the property tool tip text registered for a specific processor. |
static java.lang.Object[] |
getPropertyValues(java.lang.String propertyName)
Access to the array of property values assigned to a specific property regardless on which processor the property belongs to. |
static java.lang.Object[] |
getPropertyValues(java.lang.String processorName,
java.lang.String propertyName)
Access to the array of property values assigned to the processor name and property name. |
static java.lang.String[] |
getRequiredProcessors(java.lang.String processorName)
|
static void |
registerProcessor(XBRLPlugInProcessor processor,
java.lang.String processorDescriptionOnGui,
java.lang.String processorToolTip,
java.lang.String[] requiredProcessors)
Registers a new processor on this helper. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void registerProcessor(XBRLPlugInProcessor processor,
java.lang.String processorDescriptionOnGui,
java.lang.String processorToolTip,
java.lang.String[] requiredProcessors)
processor - cannot be null. if already registered this method does nothing.processorDescriptionOnGui - short processor description suitable for a tab nameprocessorToolTip - long processor description suitable for the tool tip on the same tabrequiredProcessors - string array of processor names this processor depends on.
public static void addProperty(java.lang.String processor,
java.lang.String propertyName,
java.lang.String propertyDescriptionOnGui,
java.lang.String propertyToolTip,
java.lang.Object defaultValue,
java.lang.Object... values)
processor - the processor name to add a propertyName tovalues - ... list of possible valuespublic static java.lang.String[] getProcessorNames()
public static java.lang.String[] getPropertyNames(java.lang.String processorName)
processorName - the processor name
public static java.lang.Object[] getPropertyValues(java.lang.String processorName,
java.lang.String propertyName)
processorName - as StringpropertyName - as String
public static java.lang.Object[] getPropertyValues(java.lang.String propertyName)
propertyName -
public static java.lang.String getProcessorProperty(java.lang.String propertyName)
propertyName -
public static java.lang.String getProcessorNameOnGui(java.lang.String processorName)
processorName - the processor name
public static java.lang.String getProcessorToolTip(java.lang.String processorName)
processorName - the processor name
public static java.lang.String getPropertyDescription(java.lang.String processorName,
java.lang.String propertyName)
processorName - the processor name for which the property is registeredpropertyName - the property name for which the GUI description is requested
public static java.lang.String getPropertyDescription(java.lang.String propertyName)
propertyName - the property name for which the descriptive text is requested
public static java.lang.String getPropertyToolTip(java.lang.String processorName,
java.lang.String propertyName)
processorName - the processor name for which the property is registeredpropertyName - the property name for which the GUI description is requested
public static java.lang.String getPropertyToolTip(java.lang.String propertyName)
propertyName - the property name for which the descriptive text is requested
public static java.lang.Object getPropertyDefaultValue(java.lang.String processorName,
java.lang.String propertyName)
processorName - the processor name for which the property is registeredpropertyName - the property name for which the default value is requested
public static java.lang.Object getPropertyDefaultValue(java.lang.String propertyName)
propertyName - the property name for which the descriptive text is requested
public static java.lang.String[] getRequiredProcessors(java.lang.String processorName)
processorName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||