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

java.lang.Object
  extended by org.jboss.security.xacml.sunxacml.combine.CombinerElement
      extended by org.jboss.security.xacml.sunxacml.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(OutputStream output, Indenter indenter)
          Encodes this element's Rule and parameters into their XML representation and writes this encoding to the given OutputStream with indentation.
 Rule getRule()
          Returns the Rule in this element.
 
Methods inherited from class org.jboss.security.xacml.sunxacml.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(OutputStream output,
                   Indenter indenter)
Encodes this element's Rule and parameters into their XML representation and writes this encoding to the given OutputStream with indentation.

Specified by:
encode in class CombinerElement
Parameters:
output - a stream into which the XML-encoded data is written
indenter - an object that creates indentation strings


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