org.wso2.balana.combine
Class CombinerParameter

java.lang.Object
  extended by org.wso2.balana.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(StringBuilder builder)
          Encodes this CombinerParameter into its XML form and writes this out to the provided StringBuilder
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
Returns:
an instance of CombinerParameter
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(StringBuilder builder)
Encodes this CombinerParameter into its XML form and writes this out to the provided StringBuilder

Parameters:
builder - string stream into which the XML-encoded data is written


Copyright © 2015 WSO2. All rights reserved.