public class RuleCombinerElement extends CombinerElement
CombinerElement
used for rule combining.Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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. |
getElement, getParameters
public RuleCombinerElement(Rule rule)
RuleRule
when combining.rule
- a Rule
to use in combiningpublic RuleCombinerElement(Rule rule, List parameters)
Rule
to combine and its
associated combiner parameters.rule
- a Rule
to use in combiningparameters
- a (possibly empty) non-null List
of
CombinerParameters provided for general
use (for all pre-2.0 policies this must be empty)
public Rule getRule()
Rule
in this element.Rule
public void encode(OutputStream output, Indenter indenter)
Rule
and parameters into their
XML representation and writes this encoding to the given
OutputStream
with indentation.encode
in class CombinerElement
output
- a stream into which the XML-encoded data is writtenindenter
- an object that creates indentation stringsCopyright © 2023 JBoss by Red Hat. All rights reserved.