XBRLAPI

A Java API for XBRL


org.xbrlapi.xmlbase
Class BaseURISAXResolverImpl

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

public class BaseURISAXResolverImpl
extends BaseURIResolverImpl
implements BaseURISAXResolver, Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.xbrlapi.xmlbase.BaseURIResolver
XML_NAMESPACE
 
Constructor Summary
BaseURISAXResolverImpl()
          Constructor for processing documents without a base URI.
BaseURISAXResolverImpl(URI documentURI)
          Constructor takes the absolute URI of the document to be processed using this BaseURISAXResolver Implementation as an input.
 
Method Summary
 void addBaseURI(String xmlBase)
          Updates the XML Base given new base information Used on the start of element XML base event.
 boolean equals(Object obj)
           
 URI getBaseURI()
          Returns the XML Base URI of the given element.
 int hashCode()
           
 void removeBaseURI()
          Reverts to the previous Base URI - used on the end of element XML base event.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseURISAXResolverImpl

public BaseURISAXResolverImpl(URI documentURI)
Constructor takes the absolute URI of the document to be processed using this BaseURISAXResolver Implementation as an input. This is then used as part of the Base URI resolution.

Parameters:
documentURI - The absolute URI of the base document. If the base document does not have a base URI then this parameter must be null if this constructor is being used.

BaseURISAXResolverImpl

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

Method Detail

getBaseURI

public URI getBaseURI()
               throws XMLBaseException
Description copied from interface: BaseURISAXResolver
Returns the XML Base URI of the given element. Used with the SAX API

Specified by:
getBaseURI in interface BaseURISAXResolver
Returns:
the Base URI form.
Throws:
XMLBaseException

addBaseURI

public void addBaseURI(String xmlBase)
                throws XMLBaseException
Updates the XML Base given new base information Used on the start of element XML base event.

Specified by:
addBaseURI in interface BaseURISAXResolver
Parameters:
xmlBase - the value of the xmlBase attribute if supplied.
Throws:
XMLBaseException

removeBaseURI

public void removeBaseURI()
                   throws XMLBaseException
Reverts to the previous Base URI - used on the end of element XML base event.

Specified by:
removeBaseURI in interface BaseURISAXResolver
Throws:
XMLBaseException

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.