Package org.opensaml.xacml.policy.impl
Class PolicyTypeImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xacml.impl.AbstractXACMLObject
org.opensaml.xacml.policy.impl.PolicyTypeImpl
- All Implemented Interfaces:
XMLObject
,PolicyType
,XACMLObject
Concrete implemenation of
PolicyType
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IndexedXMLObjectChildrenList<? extends XACMLObject>
Elements within the choice group.private DescriptionType
Policy description.private ObligationsType
Policy obligations.private DefaultsType
Policy defaults.private String
ID of this policy.private String
Rule combinging algorithm ID.private TargetType
Policy target.private String
Version of this policy.Fields inherited from interface org.opensaml.xacml.policy.PolicyType
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, POLICY_ID_ATTRIB_NAME, RULE_COMBINING_ALG_ID_ATTRIB_NAME, SCHEMA_TYPE_LOCAL_NAME, SCHEMA_TYPE_NAME, VERSION_ATTRIB_NAME, VERSION_DEFAULT_VALUE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PolicyTypeImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the combiner parameters for this policy.Gets the description for this policy.Gets the obligations of this policy.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.Gets the defaults for this policy.Gets the ID of this policy.Gets the rule combiner parameters for this policy.Gets the rule combining algorithm used with this policy.getRules()
Gets the rules for this policy.Gets the target of this policy.Gets the variable definition for this policy.Gets the XACML version of this policy.void
setDescription
(DescriptionType newDescription) Sets the description for this policy.void
setObligations
(ObligationsType newObligations) Sets the obligations of this policy.void
setPolicyDefaults
(DefaultsType defaults) Sets the defaults for this policy.void
setPolicyId
(String id) Sets the ID of this policy.void
Sets the rule combining algorithm used with this policy.void
setTarget
(TargetType newTarget) Sets the target of this policy.void
setVersion
(String newVersion) Sets the XACML version of this policy.Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
description
Policy description. -
policyDefaults
Policy defaults. -
target
Policy target. -
choiceGroup
Elements within the choice group. -
obligations
Policy obligations. -
policyId
ID of this policy. -
version
Version of this policy. -
ruleCombiningAlgo
Rule combinging algorithm ID.
-
-
Constructor Details
-
PolicyTypeImpl
Constructor.- Parameters:
namespaceURI
- the namespace the element is inelementLocalName
- the local name of the XML element this Object representsnamespacePrefix
- the prefix for the given namespace
-
-
Method Details
-
getCombinerParameters
Gets the combiner parameters for this policy.- Specified by:
getCombinerParameters
in interfacePolicyType
- Returns:
- combiner parameters for this policy
-
getDescription
Gets the description for this policy.- Specified by:
getDescription
in interfacePolicyType
- Returns:
- description for this policy
-
getObligations
Gets the obligations of this policy.- Specified by:
getObligations
in interfacePolicyType
- Returns:
- obligations of this policy
-
getPolicyDefaults
Gets the defaults for this policy.- Specified by:
getPolicyDefaults
in interfacePolicyType
- Returns:
- defaults for this policy
-
getPolicyId
Gets the ID of this policy.- Specified by:
getPolicyId
in interfacePolicyType
- Returns:
- ID of this policy
-
getRuleCombinerParameters
Gets the rule combiner parameters for this policy.- Specified by:
getRuleCombinerParameters
in interfacePolicyType
- Returns:
- rule combiner parameters for this policy
-
getRuleCombiningAlgoId
Gets the rule combining algorithm used with this policy.- Specified by:
getRuleCombiningAlgoId
in interfacePolicyType
- Returns:
- rule combining algorithm used with this policy
-
getRules
Gets the rules for this policy.- Specified by:
getRules
in interfacePolicyType
- Returns:
- rules for this policy
-
getTarget
Gets the target of this policy.- Specified by:
getTarget
in interfacePolicyType
- Returns:
- target of this policy
-
getVariableDefinitions
Gets the variable definition for this policy.- Specified by:
getVariableDefinitions
in interfacePolicyType
- Returns:
- variable definition for this policy
-
getVersion
Gets the XACML version of this policy.- Specified by:
getVersion
in interfacePolicyType
- Returns:
- XACML version of this policy
-
setDescription
Sets the description for this policy.- Specified by:
setDescription
in interfacePolicyType
- Parameters:
newDescription
- description for this policy
-
setObligations
Sets the obligations of this policy.- Specified by:
setObligations
in interfacePolicyType
- Parameters:
newObligations
- obligations of this policy
-
setPolicyDefaults
Sets the defaults for this policy.- Specified by:
setPolicyDefaults
in interfacePolicyType
- Parameters:
defaults
- defaults for this policy
-
setPolicyId
Sets the ID of this policy.- Specified by:
setPolicyId
in interfacePolicyType
- Parameters:
id
- ID of this policy
-
setRuleCombiningAlgoId
Sets the rule combining algorithm used with this policy.- Specified by:
setRuleCombiningAlgoId
in interfacePolicyType
- Parameters:
id
- rule combining algorithm used with this policy
-
setTarget
Sets the target of this policy.- Specified by:
setTarget
in interfacePolicyType
- Parameters:
newTarget
- target of this policy
-
setVersion
Sets the XACML version of this policy.- Specified by:
setVersion
in interfacePolicyType
- Parameters:
newVersion
- XACML version of this policy
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildren
in interfaceXMLObject
- Returns:
- ordered list of child elements
-