public class PolicyBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected PolicyRegistry |
defaultPolicyRegistry |
protected AssertionBuilderFactory |
factory |
Constructor and Description |
---|
PolicyBuilder() |
PolicyBuilder(AssertionBuilderFactory factory) |
Modifier and Type | Method and Description |
---|---|
AssertionBuilderFactory |
getAssertionBuilderFactory() |
Policy |
getPolicy(Element el) |
Policy |
getPolicy(InputStream inputStream)
Creates a Policy object from an InputStream.
|
Policy |
getPolicy(Object element)
Creates a Policy object from an element.
|
Policy |
getPolicy(XMLStreamReader reader) |
PolicyReference |
getPolicyReference(InputStream inputStream)
Creates a PolicyReference object.
|
PolicyReference |
getPolicyReference(Object element)
Creates a PolicyReference object from an element.
|
PolicyRegistry |
getPolicyRegistry()
The PolicyEngine can have a default PolicyRegistry that the Policy objects
that it creates are setup to use when normalize is called without the
PolicyRegistry.
|
protected void |
notifyUnknownPolicyElement(Object childElement) |
void |
registerBuilder(QName qname,
AssertionBuilder<?> builder)
Registers an AssertionBuilder instances and associates it with a QName.
|
void |
setPolicyRegistry(PolicyRegistry reg) |
protected AssertionBuilderFactory factory
protected PolicyRegistry defaultPolicyRegistry
public PolicyBuilder()
public PolicyBuilder(AssertionBuilderFactory factory)
public void registerBuilder(QName qname, AssertionBuilder<?> builder)
qname
- the QName of the Assertion that the Builder can buildbuilder
- the AssertionBuilder that can build assertions that of 'qname'
typepublic PolicyRegistry getPolicyRegistry()
public void setPolicyRegistry(PolicyRegistry reg)
public AssertionBuilderFactory getAssertionBuilderFactory()
public Policy getPolicy(InputStream inputStream)
inputStream
- the InputStream of the Policypublic Policy getPolicy(XMLStreamReader reader)
public Policy getPolicy(Object element)
element
- the Policy elementpublic PolicyReference getPolicyReference(InputStream inputStream)
inputStream
- the InputStream of the PolicyReferencepublic PolicyReference getPolicyReference(Object element)
element
- the PolicyReference elementprotected void notifyUnknownPolicyElement(Object childElement)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.