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 InstantValue saved in the NotBefore attribute.private InstantValue 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
ConstructorsModifierConstructorDescriptionprotectedConditionsImpl(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.voidsetNotBefore(Instant dt) Set the "not before" condition.voidSet the "not on or after" condition.Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, ensureDOM, 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, setSchemaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, 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
protected ConditionsImpl(@Nullable String namespaceURI, @Nonnull String elementLocalName, @Nullable String namespacePrefix) 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:
getNotBeforein interfaceConditions- Returns:
- the "not before" condition
-
setNotBefore
Set the "not before" condition.- Specified by:
setNotBeforein interfaceConditions- Parameters:
dt- the "not before" condition
-
getNotOnOrAfter
Get the "not on or after" condition.- Specified by:
getNotOnOrAfterin interfaceConditions- Returns:
- the "not on or after" condition
-
setNotOnOrAfter
Set the "not on or after" condition.- Specified by:
setNotOnOrAfterin interfaceConditions- Parameters:
dt- the "not on or after" condition
-
getConditions
Get the conditions.- Specified by:
getConditionsin interfaceConditions- Returns:
- the conditions
-
getConditions
Get the conditions with the given schema type or element name.- Specified by:
getConditionsin interfaceConditions- Parameters:
typeOrName- the schema type or element name- Returns:
- the matching conditions
-
getAudienceRestrictionConditions
Get the audience restriction conditions.- Specified by:
getAudienceRestrictionConditionsin interfaceConditions- Returns:
- the audience restriction conditions
-
getDoNotCacheConditions
Get the "do not cache" conditions.- Specified by:
getDoNotCacheConditionsin 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:
getOrderedChildrenin interfaceXMLObject- Returns:
- ordered list of child elements
-