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 theConditions
interface.
-
-
Field Summary
Fields Modifier and Type Field Description private IndexedXMLObjectChildrenList<Condition>
conditions
Set containing all the Conditions.private Instant
notBefore
Value saved in the NotBefore attribute.private Instant
notOnOrAfter
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
Constructors Modifier Constructor Description protected
ConditionsImpl(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()
Instant
getNotBefore()
Instant
getNotOnOrAfter()
List<XMLObject>
getOrderedChildren()
void
setNotBefore(Instant dt)
void
setNotOnOrAfter(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:
getNotBefore
in interfaceConditions
-
setNotBefore
public void setNotBefore(Instant dt)
- Specified by:
setNotBefore
in interfaceConditions
-
getNotOnOrAfter
public Instant getNotOnOrAfter()
- Specified by:
getNotOnOrAfter
in interfaceConditions
-
setNotOnOrAfter
public void setNotOnOrAfter(Instant dt)
- Specified by:
setNotOnOrAfter
in interfaceConditions
-
getConditions
public List<Condition> getConditions()
- Specified by:
getConditions
in interfaceConditions
-
getConditions
public List<Condition> getConditions(@Nonnull QName typeOrName)
- Specified by:
getConditions
in interfaceConditions
-
getAudienceRestrictionConditions
public List<AudienceRestrictionCondition> getAudienceRestrictionConditions()
- Specified by:
getAudienceRestrictionConditions
in interfaceConditions
-
getDoNotCacheConditions
public List<DoNotCacheCondition> getDoNotCacheConditions()
- Specified by:
getDoNotCacheConditions
in interfaceConditions
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildren
in interfaceXMLObject
-
-