public class Conditions extends XMLElement
| Constructor and Description |
|---|
Conditions(org.w3c.dom.Document owner)
Creates a new
Conditions instance. |
Conditions(org.w3c.dom.Element element)
Creates a new
Conditions instance from the given Element node. |
Conditions(org.w3c.dom.Element element, java.lang.String SystemId)
Creates a new
Conditions instance from the given Element node. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCondition(Condition condition)
Adds a
Condition to the collection. |
java.util.List |
getAudienceRestrictionConditions()
Gets the list of
AudienceRestrictionCondition objects contained in this Conditions. |
java.util.List |
getDoNotCacheConditions()
Gets the list of
DoNotCacheCondition objects contained in this Conditions. |
java.util.Date |
getNotBefore()
Returns the time instant attribute at the which the assertion becomes valid.
|
java.util.Date |
getNotOnOrAfter()
Returns the time instant attribute at the which the assertion has expired.
|
void |
setNotBefore(java.util.Date notBefore)
Sets the earliest time instant attribute at which the assertion is valid.
|
void |
setNotOnOrAfter(java.util.Date notOnOrAfter)
Sets the time instant attribute at which the assertion has expired.
|
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefixappendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public Conditions(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
Conditions instance from the given Element node.element - A Conditions element.org.w3c.dom.DOMException
public Conditions(org.w3c.dom.Element element,
java.lang.String SystemId)
throws org.w3c.dom.DOMException
Conditions instance from the given Element node.element - A Conditions element.systemId - The URI string system ID for the Conditions.org.w3c.dom.DOMException
public Conditions(org.w3c.dom.Document owner)
throws org.w3c.dom.DOMException
Conditions instance.owner - The owner document of the new Conditions.org.w3c.dom.DOMExceptionpublic void setNotBefore(java.util.Date notBefore)
notBefore - A Date object representing the time at which the assertion becomes valid.public java.util.Date getNotBefore()
Date object or null if none has been set.public void setNotOnOrAfter(java.util.Date notOnOrAfter)
notOnOrAfter - A Date object representing the expiration time of the assertion.public java.util.Date getNotOnOrAfter()
Date object or null if none has been set.public void addCondition(Condition condition)
Condition to the collection.condition - The Condition to add to this Conditions object.public java.util.List getAudienceRestrictionConditions()
AudienceRestrictionCondition objects contained in this Conditions.List containing AudienceRestrictionConditions objects, or an empty List if no AudienceRestrictionCondition has been set.public java.util.List getDoNotCacheConditions()
DoNotCacheCondition objects contained in this Conditions.List containing DoNotCacheCondition objects, or an empty List if no DoNotCacheCondition has been set.