com.sun.tools.xjc.reader.internalizer

Class AbstractReferenceFinderImpl

public abstract class AbstractReferenceFinderImpl extends XMLFilterImpl

XMLFilter that finds references to other schema files from SAX events. This implementation is a base implementation for typical case where we just need to look for a particular attribute which contains an URL to another schema file.
Field Summary
protected DOMForestparent
Constructor Summary
protected AbstractReferenceFinderImpl(DOMForest _parent)
Method Summary
protected abstract StringfindExternalResource(String nsURI, String localName, Attributes atts)
IF the given element contains a reference to an external resource, return its URL.
voidsetDocumentLocator(Locator locator)
voidstartElement(String namespaceURI, String localName, String qName, Attributes atts)

Field Detail

parent

protected final DOMForest parent

Constructor Detail

AbstractReferenceFinderImpl

protected AbstractReferenceFinderImpl(DOMForest _parent)

Method Detail

findExternalResource

protected abstract String findExternalResource(String nsURI, String localName, Attributes atts)
IF the given element contains a reference to an external resource, return its URL.

Parameters: nsURI Namespace URI of the current element localName Local name of the current element

Returns: It's OK to return a relative URL.

setDocumentLocator

void setDocumentLocator(Locator locator)

startElement

void startElement(String namespaceURI, String localName, String qName, Attributes atts)