org.opensaml
Class SAMLCondition

java.lang.Object
  extended byorg.opensaml.SAMLObject
      extended byorg.opensaml.SAMLCondition
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
SAMLAudienceRestrictionCondition, SAMLDoNotCacheCondition

public abstract class SAMLCondition
extends SAMLObject
implements java.lang.Cloneable

Abstract base class for all SAML conditions

Author:
Scott Cantor

Field Summary
protected static java.util.Hashtable conditionTypeMap
          Maps SAML condition types (as XML QNames) to Java class implementations
 
Fields inherited from class org.opensaml.SAMLObject
config, log, root
 
Constructor Summary
SAMLCondition()
           
 
Method Summary
static SAMLCondition getInstance(org.w3c.dom.Element e)
          Locates an implementation class for a condition and constructs it based on the DOM provided.
static SAMLCondition getInstance(java.io.InputStream in)
          Locates an implementation class for a condition and constructs it based on the stream provided.
static void regFactory(QName type, java.lang.String className)
          Registers a class to handle a specific SAML condition type when parsing XML
static void unregFactory(QName type)
          Unregisters a class to handle a specific SAML condition type when parsing XML
 
Methods inherited from class org.opensaml.SAMLObject
checkValidity, clone, fromDOM, fromStream, plantRoot, toBase64, toDOM, toDOM, toDOM, toDOM, toStream, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

conditionTypeMap

protected static java.util.Hashtable conditionTypeMap
Maps SAML condition types (as XML QNames) to Java class implementations

Constructor Detail

SAMLCondition

public SAMLCondition()
Method Detail

regFactory

public static void regFactory(QName type,
                              java.lang.String className)
Registers a class to handle a specific SAML condition type when parsing XML

Parameters:
type - The condition type or element name
className - The Java class that handles this condition

unregFactory

public static void unregFactory(QName type)
Unregisters a class to handle a specific SAML condition type when parsing XML

Parameters:
type - The condition type or element name

getInstance

public static SAMLCondition getInstance(org.w3c.dom.Element e)
                                 throws SAMLException
Locates an implementation class for a condition and constructs it based on the DOM provided.

Parameters:
e - The root of a DOM containing the SAML condition
Returns:
SAMLCondition A constructed condition object
Throws:
SAMLException - Thrown if an error occurs while constructing the object

getInstance

public static SAMLCondition getInstance(java.io.InputStream in)
                                 throws SAMLException
Locates an implementation class for a condition and constructs it based on the stream provided.

Parameters:
in - The stream to deserialize from
Returns:
SAMLCondition A constructed condition object
Throws:
SAMLException - Thrown if an error occurs while constructing the object


Copyright ? 2002 UCAID. All Rights Reserved.