public class VariableDefinition extends Object
Constructor and Description |
---|
VariableDefinition(String variableId,
Expression expression)
Creates a new
VariableDefinition with the given
identifier and expression. |
Modifier and Type | Method and Description |
---|---|
void |
encode(OutputStream output)
Encodes this class into its XML representation and writes this
encoding to the given
OutputStream with no indentation. |
void |
encode(OutputStream output,
Indenter indenter)
Encodes this class into its XML representation and writes this
encoding to the given
OutputStream with indentation. |
Expression |
getExpression()
Returns the expression provided by this definition.
|
static VariableDefinition |
getInstance(Node root,
PolicyMetaData metaData,
VariableManager manager)
Returns a new instance of the
VariableDefinition class
based on a DOM node. |
String |
getVariableId()
Returns the identifier for this definition.
|
public VariableDefinition(String variableId, Expression expression)
VariableDefinition
with the given
identifier and expression.variableId
- the identifier for this definitionexpression
- the expression defined herepublic static VariableDefinition getInstance(Node root, PolicyMetaData metaData, VariableManager manager) throws ParsingException
VariableDefinition
class
based on a DOM node. The node must be the root of an XML
VariableDefinitionType.root
- the DOM root of a VariableDefinitionType XML typemetaData
- the meta-data associated with the containing policymanager
- VariableManager
used to connect references
to this definitionParsingException
- if the VariableDefinitionType is invalidpublic String getVariableId()
public Expression getExpression()
public void encode(OutputStream output)
OutputStream
with no indentation.output
- a stream into which the XML-encoded data is writtenpublic void encode(OutputStream output, Indenter indenter)
OutputStream
with indentation.output
- a stream into which the XML-encoded data is writtenindenter
- an object that creates indentation stringsCopyright © 2023 JBoss by Red Hat. All rights reserved.