|
TPTP 4.2.0 Monitoring Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.logging.adapter.parsers.AttributeStatement
This class represents a particular attribute to be parsed from the record. It can have multiple substitution rules that are used to determine the value for the attribute based on the data in the record.
| Constructor Summary | |
|---|---|
AttributeStatement()
Deprecated. Default constructor |
|
AttributeStatement(IParser parser)
Deprecated. Create an AttributeStatement with the specified IParser object. |
|
| Method Summary | |
|---|---|
boolean |
isChildChoice()
Deprecated. Alway returns false because attributes do not have children. |
boolean |
isRequiredByParent()
Deprecated. Returns whether this attribute is required by its parent. |
void |
prepare(org.w3c.dom.Element node,
java.lang.String path)
Deprecated. Prepare the configuration and substitution rules for this attribute. |
java.util.List |
run(java.lang.String line,
java.util.HashMap inputs)
Deprecated. Run the substitution rules for this attribute until a match is found. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AttributeStatement()
public AttributeStatement(IParser parser)
parser - - IParser object| Method Detail |
public void prepare(org.w3c.dom.Element node,
java.lang.String path)
throws PreparationException
prepare in interface IStatementnode - - configuration information for this attributepath - - name of this attribute
PreparationException - if an error occurs and a message cannot be logged.org.eclipse.hyades.logging.adapter.IStatement#prepare(org.w3c.dom.Element)
public java.util.List run(java.lang.String line,
java.util.HashMap inputs)
throws AdapterException,
StatementException
run in interface IStatementline - - string to perform the matching and parsing oninputs - - the map containing the preprocessed properties extracted from the message string
AdapterException - if an error occurred during parsing. The exception
contains a message indicating what error occurred and possibly a cause exception.
StatementException - if no data can be parsed for this attribute from the input string.org.eclipse.hyades.logging.adapter.IStatement#run(java.lang.String)public boolean isRequiredByParent()
isRequiredByParent in interface IStatementIStatement.isRequiredByParent()public boolean isChildChoice()
isChildChoice in interface IStatementIStatement.isChildChoice()
|
TPTP 4.2.0 Monitoring Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||