org.opensaml
Class SAMLStatement

java.lang.Object
  extended byorg.opensaml.SAMLObject
      extended byorg.opensaml.SAMLStatement
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
SAMLSubjectStatement

public abstract class SAMLStatement
extends SAMLObject
implements Cloneable

Abstract base class for all SAML statements

Author:
Scott Cantor

Field Summary
protected static Hashtable statementTypeMap
          Maps SAML statement types (as XML QNames) to Java class implementations
 
Fields inherited from class org.opensaml.SAMLObject
config, dirty, log, parentObject, root
 
Constructor Summary
SAMLStatement()
           
 
Method Summary
static SAMLStatement getInstance(Element e)
          Locates an implementation class for a statement and constructs it based on the DOM provided.
static SAMLStatement getInstance(InputStream in)
          Locates an implementation class for a statement and constructs it based on the stream provided.
static void regFactory(QName type, String className)
          Registers a class to handle a specific SAML statement type when parsing XML
static void unregFactory(QName type)
          Unregisters a class to handle a specific SAML statement type when parsing XML
 
Methods inherited from class org.opensaml.SAMLObject
buildRoot, checkValidity, clone, fromDOM, fromStream, fromStream, getParent, plantRoot, setDirty, setParent, 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

statementTypeMap

protected static Hashtable statementTypeMap
Maps SAML statement types (as XML QNames) to Java class implementations

Constructor Detail

SAMLStatement

public SAMLStatement()
Method Detail

regFactory

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

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

unregFactory

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

Parameters:
type - The statement type or element name

getInstance

public static SAMLStatement getInstance(Element e)
                                 throws SAMLException
Locates an implementation class for a statement and constructs it based on the DOM provided.

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

getInstance

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

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


Copyright ? 2005 UCAID. All Rights Reserved.