public class PolicyEngine extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALL |
static String |
EXACTLY_ONE |
static String |
POLICY |
static String |
POLICY_NAMESPACE |
static String |
POLICY_REF |
Constructor and Description |
---|
PolicyEngine() |
Modifier and Type | Method and Description |
---|---|
static Policy |
getPolicy(InputStream inputStream)
Creates a Policy object from an InputStream.
|
static Policy |
getPolicy(Object element)
Creates a Policy object from an Element.
|
static Policy |
getPolicy(org.apache.axiom.om.OMElement element)
Creates a Policy object from an OMElement.
|
static PolicyReference |
getPolicyReference(Object element)
Creates a PolicyReference object from an Element.
|
static PolicyReference |
getPolicyReference(org.apache.axiom.om.OMElement element)
Creates a PolicyReference object from an OMElement.
|
static PolicyReference |
getPolicyReferene(InputStream inputStream)
Creates a PolicyReference object.
|
static void |
registerBuilder(QName qname,
AssertionBuilder<?> builder)
Registers an AssertionBuilder instances and associates it with a QName.
|
public static final String POLICY_NAMESPACE
public static final String POLICY
public static final String EXACTLY_ONE
public static final String ALL
public static final String POLICY_REF
public static 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 static Policy getPolicy(InputStream inputStream)
inputStream
- the InputStream of the Policypublic static PolicyReference getPolicyReferene(InputStream inputStream)
inputStream
- the InputStream of the PolicyReferencepublic static Policy getPolicy(org.apache.axiom.om.OMElement element)
element
- the Policy elementpublic static Policy getPolicy(Object element)
element
- the Policy elementpublic static PolicyReference getPolicyReference(org.apache.axiom.om.OMElement element)
element
- the PolicyReference elementpublic static PolicyReference getPolicyReference(Object element)
element
- the PolicyReference elementCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.