public class ProcedureAttributes
extends java.lang.Object
Constructor and Description |
---|
ProcedureAttributes() |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue(java.lang.String attrName,
boolean defaultValue)
Retrieves the value of a boolean attribute.
|
ExpressionNode |
getExpression(java.lang.String attrName)
Retrieves the operator tree for an optional attribute holding an
expression.
|
ExpressionNode |
getRequiredExpression(java.lang.String attrName)
Retrieves the operator tree for a required attribute holding an
expression.
|
java.lang.String |
getRequiredStringValue(java.lang.String attrName)
Retrieves the value of a required attribute holding a simple string.
|
java.lang.String |
getStringValue(java.lang.String attrName)
Retrieves the value of an optional attribute holding a simple string.
|
public ExpressionNode getExpression(java.lang.String attrName)
attrName
- Name of the attribute.null
if the attribute is not set.public ExpressionNode getRequiredExpression(java.lang.String attrName) throws SDMetricsException
attrName
- Name of the attribute.SDMetricsException
- The specified attribute is not set.public java.lang.String getStringValue(java.lang.String attrName) throws SDMetricsException
attrName
- Name of the attribute.null
if
the attribute is not set.SDMetricsException
- the specified attribute contains operators
rather than a simple string value.public java.lang.String getRequiredStringValue(java.lang.String attrName) throws SDMetricsException
attrName
- Name of the attribute.SDMetricsException
- the specified attribute is not set or contains
operators rather than a simple string value.public boolean getBooleanValue(java.lang.String attrName, boolean defaultValue) throws SDMetricsException
attrName
- Name of the attribute.defaultValue
- Value to return if the attribute is not set at all.true
if the attribute is set to "true",
false
if the attribute is set to anything else than
"true", defaultValue
if the attribute is not set at
all.SDMetricsException
- the specified attribute contains operators
rather than a simple string value.