org.jboss.security.xacml.sunxacml.combine
Class CombinerParameter

java.lang.Object
  extended by org.jboss.security.xacml.sunxacml.combine.CombinerParameter

public class CombinerParameter
extends Object

Represents a single named parameter to a combining algorithm. Parameters are only used by XACML 2.0 and later policies.

Since:
2.0
Author:
Seth Proctor

Constructor Summary
CombinerParameter(String name, AttributeValue value)
          Creates a new CombinerParameter.
 
Method Summary
 void encode(OutputStream output, Indenter indenter)
          Encodes this parameter into its XML representation and writes this encoding to the given OutputStream with indentation.
static CombinerParameter getInstance(Node root)
          Returns a new instance of the CombinerParameter class based on a DOM node.
 String getName()
          Returns the name of this parameter.
 AttributeValue getValue()
          Returns the value provided by this parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinerParameter

public CombinerParameter(String name,
                         AttributeValue value)
Creates a new CombinerParameter.

Parameters:
name - the parameter's name
value - the parameter's value
Method Detail

getInstance

public static CombinerParameter getInstance(Node root)
                                     throws ParsingException
Returns a new instance of the CombinerParameter class based on a DOM node. The node must be the root of an XML CombinerParameterType.

Parameters:
root - the DOM root of a CombinerParameterType XML type
Throws:
ParsingException - if the CombinerParameterType is invalid

getName

public String getName()
Returns the name of this parameter.

Returns:
the name of this parameter

getValue

public AttributeValue getValue()
Returns the value provided by this parameter.

Returns:
the value provided by this parameter

encode

public void encode(OutputStream output,
                   Indenter indenter)
Encodes this parameter into its XML representation and writes this encoding to the given OutputStream with indentation.

Parameters:
output - a stream into which the XML-encoded data is written
indenter - an object that creates indentation strings


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.