|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.xacml.sunxacml.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 | |
|---|---|
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. |
| 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 here| Method 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 void encode(OutputStream output)
OutputStream with no indentation.
output - a stream into which the XML-encoded data is written
public 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 strings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||