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()List<Condition>getConditions()List<Condition>getConditions(QName typeOrName)List<DoNotCacheCondition>getDoNotCacheConditions()InstantgetNotBefore()InstantgetNotOnOrAfter()List<XMLObject>getOrderedChildren()voidsetNotBefore(Instant dt)voidsetNotOnOrAfter(Instant dt)-
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()
- Specified by:
getNotBeforein interfaceConditions
-
setNotBefore
public void setNotBefore(Instant dt)
- Specified by:
setNotBeforein interfaceConditions
-
getNotOnOrAfter
public Instant getNotOnOrAfter()
- Specified by:
getNotOnOrAfterin interfaceConditions
-
setNotOnOrAfter
public void setNotOnOrAfter(Instant dt)
- Specified by:
setNotOnOrAfterin interfaceConditions
-
getConditions
public List<Condition> getConditions()
- Specified by:
getConditionsin interfaceConditions
-
getConditions
public List<Condition> getConditions(@Nonnull QName typeOrName)
- Specified by:
getConditionsin interfaceConditions
-
getAudienceRestrictionConditions
public List<AudienceRestrictionCondition> getAudienceRestrictionConditions()
- Specified by:
getAudienceRestrictionConditionsin interfaceConditions
-
getDoNotCacheConditions
public List<DoNotCacheCondition> getDoNotCacheConditions()
- Specified by:
getDoNotCacheConditionsin interfaceConditions
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
-