com.openharbor.beck.receive
Interface XMLContext

All Known Implementing Classes:
BeckDeserializer.BeckHandler.AxisNamespaceResolver, DefaultSAXContentHandler

public interface XMLContext

Miscellaneous nformation from an XML document.


Method Summary
 java.lang.String getBaseURI()
          The base URI to be used when resolving an external reference or reporting an error.
 org.xml.sax.EntityResolver getEntityResolver()
          The current algorithm for resolving external references.
 XMLName resolveNamespace(java.lang.String qname, boolean isAttribute)
          Resolve an XML name to its namespace URI and local part.
 

Method Detail

resolveNamespace

public XMLName resolveNamespace(java.lang.String qname,
                                boolean isAttribute)
                         throws UnknownNamespaceException
Resolve an XML name to its namespace URI and local part.

Parameters:
qname - an XML local name or qualified name (of the form prefix:localPart).
isAttribute - whether this is the name of an XML attribute. The resolution algorithm for an attribute name is slightly different than for an element name.
Returns:
the namespace URI (if any) and local part.
Throws:
UnknownNamespaceException - the qname's prefix has not been defined (by an xmlns:prefix declaration).

getBaseURI

public java.lang.String getBaseURI()
The base URI to be used when resolving an external reference or reporting an error.


getEntityResolver

public org.xml.sax.EntityResolver getEntityResolver()
The current algorithm for resolving external references.

Returns:
the object that resolves external references, or null to indicate that the default resolution algorithm should be used.