Package com.sun.identity.xacml.policy
Class PolicyFactory
- java.lang.Object
-
- com.sun.identity.xacml.policy.PolicyFactory
-
public class PolicyFactory extends Object
This is the factory class to obtain instances of the objects defined in xacml context schema. There are three ways to obtain an instance of a object type: with no parameters, with a DOM tree element, or with an XML String.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObligationcreateObligation()Returns a new instance ofObligation.ObligationcreateObligation(String xml)Returns a new instance ofObligationThe return object is immutable.ObligationcreateObligation(Element elem)Returns a new instance ofObligation.ObligationscreateObligations()Returns a new instance ofObligations.ObligationscreateObligations(String xml)Returns a new instance ofObligationsThe return object is immutable.ObligationscreateObligations(Element elem)Returns a new instance ofObligations.static PolicyFactorygetInstance()Returns the instance ofContextSchemaFactory.
-
-
-
Method Detail
-
getInstance
public static PolicyFactory getInstance()
Returns the instance ofContextSchemaFactory.- Returns:
ContextSchemaFactory.
-
createObligation
public Obligation createObligation()
Returns a new instance ofObligation.- Returns:
- a new instance of
Obligation
-
createObligation
public Obligation createObligation(Element elem) throws XACMLException
Returns a new instance ofObligation. The return object is immutable.- Parameters:
elem- a DOM Element representation ofObligation- Returns:
- a new instance of
Obligation - Throws:
XACMLException- if error occurs while processing the DOM Element
-
createObligation
public Obligation createObligation(String xml) throws XACMLException
Returns a new instance ofObligationThe return object is immutable.- Parameters:
xml- a XML string representation ofObligation- Returns:
- a new instance of
Resource - Throws:
XACMLException- if error occurs while processing the XML string
-
createObligations
public Obligations createObligations()
Returns a new instance ofObligations.- Returns:
- a new instance of
Obligations
-
createObligations
public Obligations createObligations(Element elem) throws XACMLException
Returns a new instance ofObligations. The return object is immutable.- Parameters:
elem- a DOM Element representation ofObligations- Returns:
- a new instance of
Obligations - Throws:
XACMLException- if error occurs while processing the DOM Element
-
createObligations
public Obligations createObligations(String xml) throws XACMLException
Returns a new instance ofObligationsThe return object is immutable.- Parameters:
xml- a XML string representation ofObligations- Returns:
- a new instance of
Obligations - Throws:
XACMLException- if error occurs while processing the XML string
-
-