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 |
|---|---|
String |
encode()
Encodes this
VariableDefinition into its XML form |
void |
encode(StringBuilder builder)
Encodes this
VariableDefinition into its XML form and writes this out to the provided
StringBuilder |
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 String encode()
VariableDefinition into its XML formStringpublic void encode(StringBuilder builder)
VariableDefinition into its XML form and writes this out to the provided
StringBuilderbuilder - string stream into which the XML-encoded data is writtenCopyright © 2019 WSO2. All rights reserved.