org.opensaml.xml
Class AbstractXMLObjectBuilder<XMLObjectType extends XMLObject>

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObjectBuilder<XMLObjectType>
Type Parameters:
XMLObjectType - the XMLObject type that this builder produces
All Implemented Interfaces:
XMLObjectBuilder<XMLObjectType>
Direct Known Subclasses:
AgreementMethodBuilder, CarriedKeyNameBuilder, CipherDataBuilder, CipherReferenceBuilder, CipherValueBuilder, CryptoBinaryBuilder, DataReferenceBuilder, DHKeyValueBuilder, DigestMethodBuilder, DSAKeyValueBuilder, EncryptedDataBuilder, EncryptedKeyBuilder, EncryptionMethodBuilder, EncryptionPropertiesBuilder, EncryptionPropertyBuilder, ExponentBuilder, GBuilder, GeneratorBuilder, JBuilder, KANonceBuilder, KeyInfoBuilder, KeyNameBuilder, KeyReferenceBuilder, KeySizeBuilder, KeyValueBuilder, MgmtDataBuilder, ModulusBuilder, OAEPparamsBuilder, OriginatorKeyInfoBuilder, PBuilder, PBuilder, PgenCounterBuilder, PgenCounterBuilder, PGPDataBuilder, PGPKeyIDBuilder, PGPKeyPacketBuilder, PublicBuilder, QBuilder, QBuilder, RecipientKeyInfoBuilder, ReferenceListBuilder, RetrievalMethodBuilder, RSAKeyValueBuilder, SeedBuilder, SeedBuilder, SignatureBuilder, SPKIDataBuilder, SPKISexpBuilder, TransformBuilder, TransformsBuilder, TransformsBuilder, X509CertificateBuilder, X509CRLBuilder, X509DataBuilder, X509IssuerNameBuilder, X509IssuerSerialBuilder, X509SerialNumberBuilder, X509SKIBuilder, X509SubjectNameBuilder, XPathBuilder, XSAnyBuilder, XSBase64BinaryBuilder, XSDateTimeBuilder, XSIntegerBuilder, XSQNameBuilder, XSStringBuilder, XSURIBuilder, YBuilder

public abstract class AbstractXMLObjectBuilder<XMLObjectType extends XMLObject>
extends Object
implements XMLObjectBuilder<XMLObjectType>

Base implementation for XMLObject builders. Note: This class only works with AbstractXMLObjects


Constructor Summary
AbstractXMLObjectBuilder()
           
 
Method Summary
 XMLObjectType buildObject(Element element)
          Creates an XMLObject using information from the given DOM element.
 XMLObjectType buildObject(QName objectName)
          Creates an XMLObject with a given fully qualified name.
 XMLObjectType buildObject(QName objectName, QName schemaType)
          Creates an XMLObject with a given fully qualified name and schema type.
abstract  XMLObjectType buildObject(String namespaceURI, String localName, String namespacePrefix)
          Creates an XMLObject with a given fully qualified name.
 XMLObjectType buildObject(String namespaceURI, String localName, String namespacePrefix, QName schemaType)
          Creates an XMLObject with a given fully qualified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXMLObjectBuilder

public AbstractXMLObjectBuilder()
Method Detail

buildObject

public XMLObjectType buildObject(QName objectName)
Creates an XMLObject with a given fully qualified name.

Specified by:
buildObject in interface XMLObjectBuilder<XMLObjectType extends XMLObject>
Parameters:
objectName - fully qualified name of the object
Returns:
the constructed XMLObject

buildObject

public XMLObjectType buildObject(QName objectName,
                                 QName schemaType)
Creates an XMLObject with a given fully qualified name and schema type.

Specified by:
buildObject in interface XMLObjectBuilder<XMLObjectType extends XMLObject>
Parameters:
objectName - fully qualified name of the object
schemaType - the schema type of the Element represented by this XMLObject
Returns:
the constructed XMLObject

buildObject

public abstract XMLObjectType buildObject(String namespaceURI,
                                          String localName,
                                          String namespacePrefix)
Creates an XMLObject with a given fully qualified name.

Specified by:
buildObject in interface XMLObjectBuilder<XMLObjectType extends XMLObject>
Parameters:
namespaceURI - the URI of the namespace the Element represented by this XMLObject will be in
localName - the local name of the Element represented by this XMLObject
namespacePrefix - the namespace prefix of the Element represented by this XMLObject
Returns:
the constructed XMLObject

buildObject

public XMLObjectType buildObject(String namespaceURI,
                                 String localName,
                                 String namespacePrefix,
                                 QName schemaType)
Creates an XMLObject with a given fully qualified name.

Specified by:
buildObject in interface XMLObjectBuilder<XMLObjectType extends XMLObject>
Parameters:
namespaceURI - the URI of the namespace the Element represented by this XMLObject will be in
localName - the local name of the Element represented by this XMLObject
namespacePrefix - the namespace prefix of the Element represented by this XMLObject
schemaType - the schema type of the Element represented by this XMLObject
Returns:
the constructed XMLObject

buildObject

public XMLObjectType buildObject(Element element)
Creates an XMLObject using information from the given DOM element. This method must set the QName for the Element QName within the constructed XMLObject. This method is used by AbstractXMLObjectUnmarshaller.

Specified by:
buildObject in interface XMLObjectBuilder<XMLObjectType extends XMLObject>
Parameters:
element - the DOM Element containing information about the object to be built.
Returns:
the constructed XMLObject


Copyright © 2006-2011 Internet2. All Rights Reserved.