Class Policy
- java.lang.Object
 - 
- com.sun.identity.entitlement.xacml3.core.Policy
 
 
- 
- All Implemented Interfaces:
 XACMLRootElement
public class Policy extends Object implements XACMLRootElement
Java class for PolicyType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="PolicyType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Description" minOccurs="0"/> <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}PolicyIssuer" minOccurs="0"/> <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}PolicyDefaults" minOccurs="0"/> <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Target"/> <choice maxOccurs="unbounded"> <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}CombinerParameters" minOccurs="0"/> <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}RuleCombinerParameters" minOccurs="0"/> <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}VariableDefinition"/> <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Rule"/> </choice> <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}ObligationExpressions" minOccurs="0"/> <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AdviceExpressions" minOccurs="0"/> </sequence> <attribute name="PolicyId" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> <attribute name="Version" use="required" type="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}VersionType" /> <attribute name="RuleCombiningAlgId" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> <attribute name="MaxDelegationDepth" type="{http://www.w3.org/2001/XMLSchema}integer" /> </restriction> </complexContent> </complexType> 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected AdviceExpressionsadviceExpressionsprotected List<Object>combinerParametersOrRuleCombinerParametersOrVariableDefinitionprotected Stringdescriptionprotected BigIntegermaxDelegationDepthprotected ObligationExpressionsobligationExpressionsprotected DefaultspolicyDefaultsprotected StringpolicyIdprotected PolicyIssuerpolicyIssuerprotected StringruleCombiningAlgIdprotected Targettargetprotected Versionversion- 
Fields inherited from interface com.sun.identity.entitlement.xacml3.core.XACMLRootElement
XACML3_NAMESPACE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description Policy() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdviceExpressionsgetAdviceExpressions()Gets the value of the adviceExpressions property.List<Object>getCombinerParametersOrRuleCombinerParametersOrVariableDefinition()Gets the value of the combinerParametersOrRuleCombinerParametersOrVariableDefinition property.StringgetDescription()Gets the value of the description property.BigIntegergetMaxDelegationDepth()Gets the value of the maxDelegationDepth property.ObligationExpressionsgetObligationExpressions()Gets the value of the obligationExpressions property.DefaultsgetPolicyDefaults()Gets the value of the policyDefaults property.StringgetPolicyId()Gets the value of the policyId property.PolicyIssuergetPolicyIssuer()Gets the value of the policyIssuer property.StringgetRuleCombiningAlgId()Gets the value of the ruleCombiningAlgId property.TargetgetTarget()Gets the value of the target property.VersiongetVersion()Gets the value of the version property.voidsetAdviceExpressions(AdviceExpressions value)Sets the value of the adviceExpressions property.voidsetDescription(String value)Sets the value of the description property.voidsetMaxDelegationDepth(BigInteger value)Sets the value of the maxDelegationDepth property.voidsetObligationExpressions(ObligationExpressions value)Sets the value of the obligationExpressions property.voidsetPolicyDefaults(Defaults value)Sets the value of the policyDefaults property.voidsetPolicyId(String value)Sets the value of the policyId property.voidsetPolicyIssuer(PolicyIssuer value)Sets the value of the policyIssuer property.voidsetRuleCombiningAlgId(String value)Sets the value of the ruleCombiningAlgId property.voidsetTarget(Target value)Sets the value of the target property.voidsetVersion(Version value)Sets the value of the version property.StringtoXML()Default toXML Method to Marshal Object into XML. 
 - 
 
- 
- 
Field Detail
- 
description
protected String description
 
- 
policyIssuer
protected PolicyIssuer policyIssuer
 
- 
policyDefaults
protected Defaults policyDefaults
 
- 
target
protected Target target
 
- 
combinerParametersOrRuleCombinerParametersOrVariableDefinition
protected List<Object> combinerParametersOrRuleCombinerParametersOrVariableDefinition
 
- 
obligationExpressions
protected ObligationExpressions obligationExpressions
 
- 
adviceExpressions
protected AdviceExpressions adviceExpressions
 
- 
policyId
protected String policyId
 
- 
version
protected Version version
 
- 
ruleCombiningAlgId
protected String ruleCombiningAlgId
 
- 
maxDelegationDepth
protected BigInteger maxDelegationDepth
 
 - 
 
- 
Method Detail
- 
getDescription
public String getDescription()
Gets the value of the description property.- Returns:
 - possible object is
     
String 
 
- 
setDescription
public void setDescription(String value)
Sets the value of the description property.- Parameters:
 value- allowed object isString
 
- 
getPolicyIssuer
public PolicyIssuer getPolicyIssuer()
Gets the value of the policyIssuer property.- Returns:
 - possible object is
     
PolicyIssuer 
 
- 
setPolicyIssuer
public void setPolicyIssuer(PolicyIssuer value)
Sets the value of the policyIssuer property.- Parameters:
 value- allowed object isPolicyIssuer
 
- 
getPolicyDefaults
public Defaults getPolicyDefaults()
Gets the value of the policyDefaults property.- Returns:
 - possible object is
     
Defaults 
 
- 
setPolicyDefaults
public void setPolicyDefaults(Defaults value)
Sets the value of the policyDefaults property.- Parameters:
 value- allowed object isDefaults
 
- 
getTarget
public Target getTarget()
Gets the value of the target property.- Returns:
 - possible object is
     
Target 
 
- 
setTarget
public void setTarget(Target value)
Sets the value of the target property.- Parameters:
 value- allowed object isTarget
 
- 
getCombinerParametersOrRuleCombinerParametersOrVariableDefinition
public List<Object> getCombinerParametersOrRuleCombinerParametersOrVariableDefinition()
Gets the value of the combinerParametersOrRuleCombinerParametersOrVariableDefinition property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the combinerParametersOrRuleCombinerParametersOrVariableDefinition property.For example, to add a new item, do as follows:
getCombinerParametersOrRuleCombinerParametersOrVariableDefinition().add(newItem);Objects of the following type(s) are allowed in the list
CombinerParametersVariableDefinitionRuleCombinerParametersRule 
- 
getObligationExpressions
public ObligationExpressions getObligationExpressions()
Gets the value of the obligationExpressions property.- Returns:
 - possible object is
     
ObligationExpressions 
 
- 
setObligationExpressions
public void setObligationExpressions(ObligationExpressions value)
Sets the value of the obligationExpressions property.- Parameters:
 value- allowed object isObligationExpressions
 
- 
getAdviceExpressions
public AdviceExpressions getAdviceExpressions()
Gets the value of the adviceExpressions property.- Returns:
 - possible object is
     
AdviceExpressions 
 
- 
setAdviceExpressions
public void setAdviceExpressions(AdviceExpressions value)
Sets the value of the adviceExpressions property.- Parameters:
 value- allowed object isAdviceExpressions
 
- 
getPolicyId
public String getPolicyId()
Gets the value of the policyId property.- Returns:
 - possible object is
     
String 
 
- 
setPolicyId
public void setPolicyId(String value)
Sets the value of the policyId property.- Parameters:
 value- allowed object isString
 
- 
getVersion
public Version getVersion()
Gets the value of the version property.- Returns:
 - possible object is
     
Version 
 
- 
setVersion
public void setVersion(Version value)
Sets the value of the version property.- Parameters:
 value- allowed object isVersion
 
- 
getRuleCombiningAlgId
public String getRuleCombiningAlgId()
Gets the value of the ruleCombiningAlgId property.- Returns:
 - possible object is
     
String 
 
- 
setRuleCombiningAlgId
public void setRuleCombiningAlgId(String value)
Sets the value of the ruleCombiningAlgId property.- Parameters:
 value- allowed object isString
 
- 
getMaxDelegationDepth
public BigInteger getMaxDelegationDepth()
Gets the value of the maxDelegationDepth property.- Returns:
 - possible object is
     
BigInteger 
 
- 
setMaxDelegationDepth
public void setMaxDelegationDepth(BigInteger value)
Sets the value of the maxDelegationDepth property.- Parameters:
 value- allowed object isBigInteger
 
- 
toXML
public String toXML()
Default toXML Method to Marshal Object into XML.- Specified by:
 toXMLin interfaceXACMLRootElement- Returns:
 - String - Marshaled Results into XML String.
 
 
 - 
 
 -