|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.neethi.PolicyEngine
public class PolicyEngine
PolicyEngine provides set of methods to create a Policy object from an InputStream, OMElement, .. etc. It maintains an instance of AssertionBuilderFactory that can return AssertionBuilders that can create a Domain Assertion out of an OMElement. These AssertionBuilders are used when constructing a Policy object.
Field Summary | |
---|---|
static java.lang.String |
ALL
|
static java.lang.String |
EXACTLY_ONE
|
static java.lang.String |
POLICY
|
static java.lang.String |
POLICY_NAMESPACE
|
static java.lang.String |
POLICY_REF
|
Constructor Summary | |
---|---|
PolicyEngine()
|
Method Summary | |
---|---|
static Policy |
getPolicy(java.io.InputStream inputStream)
Creates a Policy object from an InputStream. |
static Policy |
getPolicy(org.apache.axiom.om.OMElement element)
Creates a Policy object from an OMElement. |
static PolicyReference |
getPolicyReference(org.apache.axiom.om.OMElement element)
Creates a PolicyReference object from an OMElement. |
static PolicyReference |
getPolicyReferene(java.io.InputStream inputStream)
Creates a PolicyReference object. |
static void |
registerBuilder(javax.xml.namespace.QName qname,
AssertionBuilder builder)
Registers an AssertionBuilder instances and associates it with a QName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String POLICY_NAMESPACE
public static final java.lang.String POLICY
public static final java.lang.String EXACTLY_ONE
public static final java.lang.String ALL
public static final java.lang.String POLICY_REF
Constructor Detail |
---|
public PolicyEngine()
Method Detail |
---|
public static void registerBuilder(javax.xml.namespace.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(java.io.InputStream inputStream)
inputStream
- the InputStream of the Policy
public static PolicyReference getPolicyReferene(java.io.InputStream inputStream)
inputStream
- the InputStream of the PolicyReference
public static Policy getPolicy(org.apache.axiom.om.OMElement element)
element
- the Policy elementpublic static PolicyReference getPolicyReference(org.apache.axiom.om.OMElement element)
element
- the PolicyReference element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |