org.opensaml.common.impl
Class AbstractSAMLObject

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.common.impl.AbstractSAMLObject
All Implemented Interfaces:
org.opensaml.xml.validation.ValidatingXMLObject, org.opensaml.xml.XMLObject
Direct Known Subclasses:
AbstractNameIDType, ActionImpl, ActionImpl, ActionNamespaceImpl, AdditionalMetadataLocationImpl, AdviceImpl, AdviceImpl, AffiliateMemberImpl, ArtifactImpl, AssertionArtifactImpl, AssertionIDReferenceImpl, AssertionIDRefImpl, AssertionURIRefImpl, AttributeConsumingServiceImpl, AttributeDesignatorImpl, AttributeImpl, AttributeProfileImpl, AttributeStatementImpl, AudienceImpl, AudienceImpl, AudienceRestrictionConditionImpl, AudienceRestrictionImpl, AuthenticatingAuthorityImpl, AuthnContextClassRefImpl, AuthnContextDeclImpl, AuthnContextDeclRefImpl, AuthnContextImpl, AuthnStatementImpl, AuthorityBindingImpl, AuthzDecisionStatementImpl, BaseIDImpl, CompanyImpl, ConditionsImpl, ConditionsImpl, ConfirmationMethodImpl, ContactPersonImpl, DelegateImpl, DelegationRestrictionTypeImpl, DoNotCacheConditionImpl, EmailAddressImpl, EncryptedElementTypeImpl, EndpointImpl, EvidenceImpl, EvidenceImpl, ExtensionsImpl, GetCompleteImpl, GivenNameImpl, IDPEntryImpl, IDPListImpl, KeyDescriptorImpl, NameIdentifierImpl, NameIDFormatImpl, NameIDPolicyImpl, NewIDImpl, OneTimeUseImpl, OrganizationDisplayNameImpl, OrganizationImpl, OrganizationNameImpl, OrganizationURLImpl, ProxyRestrictionImpl, ReferencedPoliciesTypeImpl, RequestedAuthnContextImpl, RequesterIDImpl, RequestImpl, RespondWithImpl, ResponseImpl, ScopingImpl, ServiceDescriptionImpl, ServiceNameImpl, SessionIndexImpl, SourceIDImpl, StatusCodeImpl, StatusCodeImpl, StatusDetailImpl, StatusDetailImpl, StatusImpl, StatusImpl, StatusMessageImpl, StatusMessageImpl, SubjectConfirmationDataImpl, SubjectConfirmationImpl, SubjectConfirmationImpl, SubjectImpl, SubjectImpl, SubjectLocalityImpl, SubjectLocalityImpl, SubjectQueryImpl, SubjectStatementImpl, SurNameImpl, TargetTypeImpl, TelephoneNumberImpl, TerminateImpl, XACMLAuthzDecisionStatementTypeImpl, XACMLPolicyStatementTypeImpl

public abstract class AbstractSAMLObject
extends org.opensaml.xml.validation.AbstractValidatingXMLObject

An abstract implementation of SAMLObject.


Constructor Summary
protected AbstractSAMLObject(java.lang.String namespaceURI, java.lang.String elementLocalName, java.lang.String namespacePrefix)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
protected  org.joda.time.DateTime prepareForAssignment(org.joda.time.DateTime oldValue, org.joda.time.DateTime newValue)
          A helper function for derived classes that checks to see if the old and new value are equal and if so releases the cached dom.
 
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, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Constructor Detail

AbstractSAMLObject

protected AbstractSAMLObject(java.lang.String namespaceURI,
                             java.lang.String elementLocalName,
                             java.lang.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

equals

public final boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

prepareForAssignment

protected org.joda.time.DateTime prepareForAssignment(org.joda.time.DateTime oldValue,
                                                      org.joda.time.DateTime newValue)
A helper function for derived classes that checks to see if the old and new value are equal and if so releases the cached dom. Derived classes are expected to use this thus: this.foo = prepareForAssignment(this.foo, foo); This method will do a (null) safe compare of the objects and will also invalidate the DOM if appropriate

Parameters:
oldValue - - current value
newValue - - proposed new value
Returns:
The value to assign to the saved Object.


Copyright © 2006-2012 Internet2. All Rights Reserved.