Class ConditionsImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.saml.saml1.core.impl.ConditionsImpl
- All Implemented Interfaces:
XMLObject
,SAMLObject
,Conditions
This is a concrete implementation of the
Conditions
interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IndexedXMLObjectChildrenList<Condition>
Set containing all the Conditions.private Instant
Value saved in the NotBefore attribute.private Instant
Value saved in the NotOnOrAfter attribute.Fields inherited from interface org.opensaml.saml.saml1.core.Conditions
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, NOTBEFORE_ATTRIB_NAME, NOTBEFORE_ATTRIB_QNAME, NOTONORAFTER_ATTRIB_NAME, NOTONORAFTER_ATTRIB_QNAME, TYPE_LOCAL_NAME, TYPE_NAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ConditionsImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the audience restriction conditions.Get the conditions.getConditions
(QName typeOrName) Get the conditions with the given schema type or element name.Get the "do not cache" conditions.Get the "not before" condition.Get the "not on or after" condition.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.void
setNotBefore
(Instant dt) Set the "not before" condition.void
Set the "not on or after" condition.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
-
notBefore
Value saved in the NotBefore attribute. -
notOnOrAfter
Value saved in the NotOnOrAfter attribute. -
conditions
Set containing all the Conditions.
-
-
Constructor Details
-
ConditionsImpl
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
-
getNotBefore
Get the "not before" condition.- Specified by:
getNotBefore
in interfaceConditions
- Returns:
- the "not before" condition
-
setNotBefore
Set the "not before" condition.- Specified by:
setNotBefore
in interfaceConditions
- Parameters:
dt
- the "not before" condition
-
getNotOnOrAfter
Get the "not on or after" condition.- Specified by:
getNotOnOrAfter
in interfaceConditions
- Returns:
- the "not on or after" condition
-
setNotOnOrAfter
Set the "not on or after" condition.- Specified by:
setNotOnOrAfter
in interfaceConditions
- Parameters:
dt
- the "not on or after" condition
-
getConditions
Get the conditions.- Specified by:
getConditions
in interfaceConditions
- Returns:
- the conditions
-
getConditions
Get the conditions with the given schema type or element name.- Specified by:
getConditions
in interfaceConditions
- Parameters:
typeOrName
- the schema type or element name- Returns:
- the matching conditions
-
getAudienceRestrictionConditions
Get the audience restriction conditions.- Specified by:
getAudienceRestrictionConditions
in interfaceConditions
- Returns:
- the audience restriction conditions
-
getDoNotCacheConditions
Get the "do not cache" conditions.- Specified by:
getDoNotCacheConditions
in interfaceConditions
- Returns:
- the "do not cache" conditions
-
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
-