Class ConditionsImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- org.opensaml.saml.saml1.core.impl.ConditionsImpl
-
- All Implemented Interfaces:
XMLObject,SAMLObject,Conditions
public class ConditionsImpl extends AbstractXMLObject implements Conditions
This is a concrete implementation of theConditionsinterface.
-
-
Field Summary
Fields Modifier and Type Field Description private IndexedXMLObjectChildrenList<Condition>conditionsSet containing all the Conditions.private InstantnotBeforeValue saved in the NotBefore attribute.private InstantnotOnOrAfterValue 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
Constructors Modifier Constructor Description protectedConditionsImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AudienceRestrictionCondition>getAudienceRestrictionConditions()Get the audience restriction conditions.List<Condition>getConditions()Get the conditions.List<Condition>getConditions(QName typeOrName)Get the conditions with the given schema type or element name.List<DoNotCacheCondition>getDoNotCacheConditions()Get the "do not cache" conditions.InstantgetNotBefore()Get the "not before" condition.InstantgetNotOnOrAfter()Get the "not on or after" condition.List<XMLObject>getOrderedChildren()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.voidsetNotOnOrAfter(Instant dt)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 Detail
-
notBefore
private Instant notBefore
Value saved in the NotBefore attribute.
-
notOnOrAfter
private Instant notOnOrAfter
Value saved in the NotOnOrAfter attribute.
-
conditions
private final IndexedXMLObjectChildrenList<Condition> conditions
Set containing all the Conditions.
-
-
Constructor Detail
-
ConditionsImpl
protected ConditionsImpl(String namespaceURI, String elementLocalName, 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 Detail
-
getNotBefore
public Instant getNotBefore()
Get the "not before" condition.- Specified by:
getNotBeforein interfaceConditions- Returns:
- the "not before" condition
-
setNotBefore
public void setNotBefore(Instant dt)
Set the "not before" condition.- Specified by:
setNotBeforein interfaceConditions- Parameters:
dt- the "not before" condition
-
getNotOnOrAfter
public Instant getNotOnOrAfter()
Get the "not on or after" condition.- Specified by:
getNotOnOrAfterin interfaceConditions- Returns:
- the "not on or after" condition
-
setNotOnOrAfter
public void setNotOnOrAfter(Instant dt)
Set the "not on or after" condition.- Specified by:
setNotOnOrAfterin interfaceConditions- Parameters:
dt- the "not on or after" condition
-
getConditions
public List<Condition> getConditions()
Get the conditions.- Specified by:
getConditionsin interfaceConditions- Returns:
- the conditions
-
getConditions
public List<Condition> getConditions(@Nonnull QName typeOrName)
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
public List<AudienceRestrictionCondition> getAudienceRestrictionConditions()
Get the audience restriction conditions.- Specified by:
getAudienceRestrictionConditionsin interfaceConditions- Returns:
- the audience restriction conditions
-
getDoNotCacheConditions
public List<DoNotCacheCondition> getDoNotCacheConditions()
Get the "do not cache" conditions.- Specified by:
getDoNotCacheConditionsin interfaceConditions- Returns:
- the "do not cache" conditions
-
getOrderedChildren
public List<XMLObject> 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
-
-