fedora.common.xml.format
Class XMLFormat

java.lang.Object
  extended by fedora.common.xml.format.XMLFormat
Direct Known Subclasses:
FedoraAudit1_0Format, FedoraBatchModify1_1Format, FedoraBESecurity1_0Format, FedoraDSCompositeModel1_0Format, FedoraObjectDatastreams1_0Format, FedoraObjectHistory1_0Format, FedoraObjectItems1_0Format, FedoraObjectMethods1_0Format, FedoraObjectProfile1_0Format, FedoraPIDList1_0Format, FedoraRepositoryDesc1_0Format, FOXML1_0Format, FOXML1_1Format, METSFedoraExt1_0Format, METSFedoraExt1_1Format, OAIDC2_0Format, OAIFriends2_0Format, OAIIdentifier2_0Format, OAIPMH2_0Format, OAIProvenance2_0Format

public class XMLFormat
extends java.lang.Object

An XML format.

Author:
cwilper@cs.cornell.edu

Field Summary
 XMLNamespace namespace
          The primary XML namespace of this format.
 java.lang.String uri
          The URI of this format.
 java.lang.String xsdLocation
          The primary public location of the XSD schema for this format.
 
Constructor Summary
XMLFormat(java.lang.String uri, XMLNamespace namespace, java.lang.String xsdLocation)
          Constructs an instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true iff the given object is an instance of this class and has the same URI.
 int hashCode()
          
 java.lang.String toString()
          Returns the URI of the format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

uri

public final java.lang.String uri
The URI of this format.


namespace

public final XMLNamespace namespace
The primary XML namespace of this format.


xsdLocation

public final java.lang.String xsdLocation
The primary public location of the XSD schema for this format.

Constructor Detail

XMLFormat

public XMLFormat(java.lang.String uri,
                 XMLNamespace namespace,
                 java.lang.String xsdLocation)
Constructs an instance.

Parameters:
uri - the URI of the format.
xmlNamespace - the primary XML namespace.
xsdSchemaLocation - the public location of the XSD schema.
Throws:
java.lang.IllegalArgumentException - if any parameter is null.
Method Detail

toString

public java.lang.String toString()
Returns the URI of the format.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns true iff the given object is an instance of this class and has the same URI.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object