org.wso2.balana.combine
Class RuleCombinerElement

java.lang.Object
  extended by org.wso2.balana.combine.CombinerElement
      extended by org.wso2.balana.combine.RuleCombinerElement

public class RuleCombinerElement
extends CombinerElement

Specific version of CombinerElement used for rule combining.

Since:
2.0
Author:
Seth Proctor

Constructor Summary
RuleCombinerElement(Rule rule)
          Constructor that only takes a Rule
RuleCombinerElement(Rule rule, List parameters)
          Constructor that takes both the Rule to combine and its associated combiner parameters.
 
Method Summary
 void encode(StringBuilder builder)
          Encodes this RuleCombinerElement into its XML form and writes this out to the provided StringBuilder
 Rule getRule()
          Returns the Rule in this element.
 
Methods inherited from class org.wso2.balana.combine.CombinerElement
getElement, getParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleCombinerElement

public RuleCombinerElement(Rule rule)
Constructor that only takes a RuleRule when combining.

Parameters:
rule - a Rule to use in combining

RuleCombinerElement

public RuleCombinerElement(Rule rule,
                           List parameters)
Constructor that takes both the Rule to combine and its associated combiner parameters.

Parameters:
rule - a Rule to use in combining
parameters - a (possibly empty) non-null List of CombinerParameters provided for general use (for all pre-2.0 policies this must be empty)
Method Detail

getRule

public Rule getRule()
Returns the Rule in this element.

Returns:
the element's Rule

encode

public void encode(StringBuilder builder)
Encodes this RuleCombinerElement into its XML form and writes this out to the provided StringBuilder

Specified by:
encode in class CombinerElement
Parameters:
builder - string stream into which the XML-encoded data is written


Copyright © 2015 WSO2. All rights reserved.