|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eventgnosis.config.EmmlObject com.eventgnosis.config.EmmlConfig
Creates and holds an emml system object configuration which is build from parsing specific section of an ECA. This configuration object provides access to attributes, parameters and variables which can be used to configure a system object.
Field Summary | |
static int |
ACTIVE
|
static int |
INACTIVE
|
Constructor Summary | |
EmmlConfig(com.eventgnosis.config.EmmlObjectId objId,
int state,
org.w3c.dom.Element elem,
com.eventgnosis.config.EmmlType type,
java.util.ArrayList parmList,
java.util.ArrayList varList,
java.util.Properties attrs)
|
Method Summary | |
static EmmlConfig |
build(Log log,
com.eventgnosis.config.ConfigurationManager configMgr,
java.lang.String emaName,
java.lang.String namePreamble,
org.w3c.dom.Element elem,
boolean stdoutReq)
Builds an EmmlConfig based on a section of emml inside the ECA. |
static java.util.Properties |
createAttributes(Log log,
java.lang.String emaName,
java.lang.String namePreamble,
org.w3c.dom.Element elem,
boolean stdoutReq)
Create attributes list for current system object. |
static java.util.ArrayList |
createParms(Log log,
com.eventgnosis.config.ConfigurationManager configMgr,
java.lang.String emaName,
java.lang.String objName,
org.w3c.dom.NodeList nodeList)
Create parameters list for current system object. |
static java.util.ArrayList |
createVariables(Log log,
com.eventgnosis.config.ConfigurationManager configMgr,
java.lang.String namePreamble,
org.w3c.dom.NodeList nodeList)
Not currently used. |
java.lang.String |
getAttribute(java.lang.String name)
Gets the specific attribute for this emml configuration |
com.eventgnosis.config.NamedEmmlTuple |
getParm(java.lang.String type,
int idx)
Gets the ith parameter of the specified type |
java.lang.Object |
getParmObject(java.lang.String type,
int idx)
Gets the specified Object for a system object emml config given it's type and occurrence index. |
java.util.ArrayList |
getParmObjects(java.lang.String type)
Gets parameter(s) objects by specified type |
java.util.ArrayList |
getParms(java.lang.String type)
Gets parameter(s) by specified type |
com.eventgnosis.config.EmmlType |
getType()
Returns EmmlType for this configuration. |
java.util.ArrayList |
getVariableNames()
Not currently used. Gets all contained variables in an EmmlConfig |
boolean |
hasLockedParm()
Determines if ANY parameter has a locked attribute set to true |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets a named attribute to a value (for debugging only). |
Methods inherited from class com.eventgnosis.config.EmmlObject |
getObjectId, getObjectName, getParentName, setObjectId, setParentName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ACTIVE
public static final int INACTIVE
Constructor Detail |
public EmmlConfig(com.eventgnosis.config.EmmlObjectId objId, int state, org.w3c.dom.Element elem, com.eventgnosis.config.EmmlType type, java.util.ArrayList parmList, java.util.ArrayList varList, java.util.Properties attrs)
objId
- globally unique object identifierstate
- initial state of objectelem
- type
- variable type referenceparmList
- list of created parameters (in order) as ObjectsvarList
- attrs
- Method Detail |
public static EmmlConfig build(Log log, com.eventgnosis.config.ConfigurationManager configMgr, java.lang.String emaName, java.lang.String namePreamble, org.w3c.dom.Element elem, boolean stdoutReq)
log
- logger instance for tracking error, warning and info messages.configMgr
- holds configuration data structure used to properly configure runtime setup based on input ECA(s).emaName
- last part of globally unique ECA namenamePreamble
- first part of globally unique ECA nameelem
- emml(dom) node to be parsedstdoutReq
- true if standardOut required
public static java.util.Properties createAttributes(Log log, java.lang.String emaName, java.lang.String namePreamble, org.w3c.dom.Element elem, boolean stdoutReq)
log
- logger instance for tracking error, warning and info messages.emaName
- last part of globally unique ECA namenamePreamble
- first part of globally unique ECA nameelem
- emml(dom) node to be parsedstdoutReq
- true if standardOut required
public static java.util.ArrayList createParms(Log log, com.eventgnosis.config.ConfigurationManager configMgr, java.lang.String emaName, java.lang.String objName, org.w3c.dom.NodeList nodeList)
log
- logger instance for tracking error, warning and info messages.configMgr
- holds configuration data structure used to properly configure runtime setup based on input ECA(s).emaName
- last part of globally unique ECA nameobjName
- name of system object to whom this parameters belongnodeList
- a list of dom elements containing emml for parameters in this configuration
public static java.util.ArrayList createVariables(Log log, com.eventgnosis.config.ConfigurationManager configMgr, java.lang.String namePreamble, org.w3c.dom.NodeList nodeList)
public java.lang.String getAttribute(java.lang.String name)
name
- attribute name
public com.eventgnosis.config.NamedEmmlTuple getParm(java.lang.String type, int idx)
type
- type of parameter to returnidx
- specifies which occurrence (starts at 0)public java.lang.Object getParmObject(java.lang.String type, int idx)
type
- emml - defined type of parameter to return.idx
- which occurrence of type parameter for this configuration(0 based).
public java.util.ArrayList getParmObjects(java.lang.String type)
type
- type of parameter(s) to return (in order)
public java.util.ArrayList getParms(java.lang.String type)
type
- type of parameter(s) to return (in order)
public com.eventgnosis.config.EmmlType getType()
public java.util.ArrayList getVariableNames()
public boolean hasLockedParm()
public void setAttribute(java.lang.String name, java.lang.String value)
name
- attribute namevalue
- attribute value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |