|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.cond.VariableDefinition
public class VariableDefinition
This class supports the VariableDefinitionType type introuced in XACML 2.0. It allows a Policy to pre-define any number of expression blocks for general use. Note that it's legal (though not usually useful) to define expressions that don't get referenced within the Policy. It is illegal to have more than one definition with the same identifier within a Policy.
Constructor Summary | |
---|---|
VariableDefinition(String variableId,
Expression expression)
Creates a new VariableDefinition with the given identifier and expression. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableDefinition(String variableId, Expression expression)
VariableDefinition
with the given identifier and expression.
variableId
- the identifier for this definitionexpression
- the expression defined hereMethod Detail |
---|
public 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 definition
ParsingException
- if the VariableDefinitionType is invalidpublic String getVariableId()
public Expression getExpression()
public String encode()
VariableDefinition
into its XML form
String
public void encode(StringBuilder builder)
VariableDefinition
into its XML form and writes this out to the provided
StringBuilder
- Parameters:
builder
- string stream into which the XML-encoded data is written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |