JBoss port of sunxacml 2.0.5-redhat-1

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

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

public class PolicyCombinerElement
extends CombinerElement

Specific version of CombinerElement used for policy combining.

Since:
2.0
Author:
Seth Proctor

Constructor Summary
PolicyCombinerElement(AbstractPolicy policy)
          Constructor that only takes an AbstractPolicy
PolicyCombinerElement(AbstractPolicy policy, List parameters)
          Constructor that takes both the AbstractPolicy to combine and its associated combiner parameters.
 
Method Summary
 void encode(OutputStream output, Indenter indenter)
          Encodes this element's AbstractPolicy and parameters into their XML representation and writes this encoding to the given OutputStream with indentation.
 AbstractPolicy getPolicy()
          Returns the AbstractPolicy 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

PolicyCombinerElement

public PolicyCombinerElement(AbstractPolicy policy)
Constructor that only takes an AbstractPolicyAbstractPolicy when combining.

Parameters:
policy - an AbstractPolicy to use in combining

PolicyCombinerElement

public PolicyCombinerElement(AbstractPolicy policy,
                             List parameters)
Constructor that takes both the AbstractPolicy to combine and its associated combiner parameters.

Parameters:
policy - an AbstractPolicy 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

getPolicy

public AbstractPolicy getPolicy()
Returns the AbstractPolicy in this element.

Returns:
the element's AbstractPolicy

encode

public void encode(OutputStream output,
                   Indenter indenter)
Encodes this element's AbstractPolicy 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

JBoss port of sunxacml 2.0.5-redhat-1

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