XBRLAPI

A Java API for XBRL


org.xbrlapi.xmlbase
Class BaseURIDOMResolverImpl

java.lang.Object
  extended by org.xbrlapi.xmlbase.BaseURIResolverImpl
      extended by org.xbrlapi.xmlbase.BaseURIDOMResolverImpl
All Implemented Interfaces:
Serializable, BaseURIDOMResolver, BaseURIResolver

public class BaseURIDOMResolverImpl
extends BaseURIResolverImpl
implements BaseURIDOMResolver

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.xbrlapi.xmlbase.BaseURIResolver
XML_NAMESPACE
 
Constructor Summary
BaseURIDOMResolverImpl()
          Constructor for processing documents without a base URI.
BaseURIDOMResolverImpl(URI documentURI)
          Constructor takes the absolute URI of the document to be processed using this BaseURISAXResolver implementation as an input.
 
Method Summary
 boolean equals(Object obj)
           
 URI getBaseURI(Element elt)
           
 URI getDocumentURI()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseURIDOMResolverImpl

public BaseURIDOMResolverImpl(URI documentURI)
                       throws XMLBaseException
Constructor takes the absolute URI of the document to be processed using this BaseURISAXResolver implementation as an input. This is then used in base URI resolution.

Parameters:
documentURI - The absolute URI of the base document. If the document does not have a base URI then this parameter must be null if this constructor is being used.
Throws:
XMLBaseException - if the document URI is not absolute or is opaque.
See Also:
BaseURIDOMResolverImpl()

BaseURIDOMResolverImpl

public BaseURIDOMResolverImpl()
Constructor for processing documents without a base URI. Sets the documentURI to null.

Method Detail

getBaseURI

public URI getBaseURI(Element elt)
               throws XMLBaseException
Specified by:
getBaseURI in interface BaseURIDOMResolver
Parameters:
elt - The XML DOM element that the Base URI is being obtained for.
Returns:
the Base URI or null if none is defined. The Base URI is determined with reference to xml:base attribute values and the Document URI as specified in the XML Base 1.0 specification.
Throws:
XMLBaseException - if the base URI is defined but is not absolute or is opaque.
See Also:
BaseURIDOMResolver.getBaseURI(Element)

getDocumentURI

public URI getDocumentURI()
Specified by:
getDocumentURI in interface BaseURIDOMResolver
Returns:
The document URI or null if none is defined.
See Also:
BaseURIDOMResolver.getDocumentURI()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

Get Java XBRL API implementation at SourceForge.net.