org.opensaml.saml1.core.impl
Class ConditionsImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.common.impl.AbstractSAMLObject
              extended by org.opensaml.saml1.core.impl.ConditionsImpl
All Implemented Interfaces:
SAMLObject, Conditions, ValidatingXMLObject, XMLObject

public class ConditionsImpl
extends AbstractSAMLObject
implements Conditions

This is a concrete implementation of the Conditions interface.


Field Summary
private  IndexedXMLObjectChildrenList<Condition> conditions
          Set containing all the Conditions
private  org.joda.time.DateTime notBefore
          Value saved in the NotBefore attribute
private  org.joda.time.DateTime notOnOrAfter
          Value saved in the NotOnOrAfter attribute
 
Fields inherited from interface org.opensaml.saml1.core.Conditions
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, NOTBEFORE_ATTRIB_NAME, NOTONORAFTER_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected ConditionsImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor
 
Method Summary
 List<AudienceRestrictionCondition> getAudienceRestrictionConditions()
          Return the List representing all the AudienceRestrictionCondition sub elements.
 List<Condition> getConditions()
          Return the List representing all the Condition sub elements.
 List<Condition> getConditions(QName typeOrName)
          Return the List representing all the Conditions with the given schema type or element name.
 List<DoNotCacheCondition> getDoNotCacheConditions()
          Return the List representing all the DoNotCacheCondition sub elements.
 org.joda.time.DateTime getNotBefore()
          Return the value of the NotBefore attribute.
 org.joda.time.DateTime getNotOnOrAfter()
          Return the value of the NotOnOrAfter attribute.
 List<XMLObject> getOrderedChildren()
          
 void setNotBefore(org.joda.time.DateTime notBefore)
          List the value of the NotBefore attribute.
 void setNotOnOrAfter(org.joda.time.DateTime notOnOrAfter)
          List the value of the NotOnOrAfter attribute.
 
Methods inherited from class org.opensaml.common.impl.AbstractSAMLObject
equals, hashCode, prepareForAssignment
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

notBefore

private org.joda.time.DateTime notBefore
Value saved in the NotBefore attribute


notOnOrAfter

private org.joda.time.DateTime 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 in
elementLocalName - the local name of the XML element this Object represents
namespacePrefix - the prefix for the given namespace
Method Detail

getNotBefore

public org.joda.time.DateTime getNotBefore()
Return the value of the NotBefore attribute.

Specified by:
getNotBefore in interface Conditions

setNotBefore

public void setNotBefore(org.joda.time.DateTime notBefore)
List the value of the NotBefore attribute.

Specified by:
setNotBefore in interface Conditions

getNotOnOrAfter

public org.joda.time.DateTime getNotOnOrAfter()
Return the value of the NotOnOrAfter attribute.

Specified by:
getNotOnOrAfter in interface Conditions

setNotOnOrAfter

public void setNotOnOrAfter(org.joda.time.DateTime notOnOrAfter)
List the value of the NotOnOrAfter attribute.

Specified by:
setNotOnOrAfter in interface Conditions

getConditions

public List<Condition> getConditions()
Return the List representing all the Condition sub elements.

Specified by:
getConditions in interface Conditions

getConditions

public List<Condition> getConditions(QName typeOrName)
Return the List representing all the Conditions with the given schema type or element name.

Specified by:
getConditions in interface Conditions
Parameters:
typeOrName - the schema type or element name

getAudienceRestrictionConditions

public List<AudienceRestrictionCondition> getAudienceRestrictionConditions()
Return the List representing all the AudienceRestrictionCondition sub elements.

Specified by:
getAudienceRestrictionConditions in interface Conditions

getDoNotCacheConditions

public List<DoNotCacheCondition> getDoNotCacheConditions()
Return the List representing all the DoNotCacheCondition sub elements.

Specified by:
getDoNotCacheConditions in interface Conditions

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2013. All Rights Reserved.