Package com.sun.tools.ws.wsdl.parser
Class AbstractReferenceFinderImpl
- java.lang.Object
-
- org.xml.sax.helpers.XMLFilterImpl
-
- com.sun.tools.ws.wsdl.parser.AbstractReferenceFinderImpl
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,XMLFilter,XMLReader
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.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) Vivek Pandey
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractReferenceFinderImpl(DOMForest _parent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)-
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
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 elementlocalName- Local name of the current element- Returns:
- It's OK to return a relative URL.
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classXMLFilterImpl- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classXMLFilterImpl
-
-