|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.eclipse.wst.wsdl.util.WSDLParser
public class WSDLParser
The SAX Parser for the WSDL model. This class' main responsibility is to compute line/column information for all elements in the source XML document. This information is stored in a map of each node to its user data.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
[ISSUE] Most of this class' implementation is a clone of XSDParser. There are plans to work on closely integrating this class and XSDParser to provide for the most efficient processing of inline schemas.
Constructor Summary | |
---|---|
WSDLParser()
Default constructor. |
|
WSDLParser(java.util.Map options)
Constructs a WSDL parser given a set of parsing options. |
Method Summary | |
---|---|
void |
characters(char[] characters,
int start,
int length)
|
void |
comment(char[] characters,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
void |
endEntity(java.lang.String name)
|
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
java.util.Collection |
getDiagnostics()
Provides a collection with the diagnostics generated during parsing. |
org.w3c.dom.Document |
getDocument()
Provides the DOM document created by parsing the WSDL document. |
java.lang.String |
getEncoding()
|
static int |
getEndColumn(org.w3c.dom.Node node)
Returns the column at which the given node ends. |
static int |
getEndLine(org.w3c.dom.Node node)
Returns the line at which the given node ends. |
static int |
getStartColumn(org.w3c.dom.Node node)
Returns the column at which the given node starts. |
static int |
getStartLine(org.w3c.dom.Node node)
Returns the line at which the given node starts. |
static java.util.Map |
getUserData(org.w3c.dom.Node node)
Returns the user data associated with the node. |
void |
parse(org.xml.sax.InputSource inputSource)
|
void |
parse(java.io.InputStream inputStream)
Parses the XML content read from the given input stream. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
void |
startEntity(java.lang.String name)
|
void |
warning(org.xml.sax.SAXParseException exception)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endPrefixMapping, ignorableWhitespace, notationDecl, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WSDLParser()
public WSDLParser(java.util.Map options)
options
- a Map of String to Object, passed along through the ResourceSet and Resource.Method Detail |
---|
public static int getEndColumn(org.w3c.dom.Node node)
node
- the node to query.
public static int getEndLine(org.w3c.dom.Node node)
node
- the node to query.
public static int getStartColumn(org.w3c.dom.Node node)
node
- the node to query.
public static int getStartLine(org.w3c.dom.Node node)
node
- the node to query.
public static java.util.Map getUserData(org.w3c.dom.Node node)
node
- the node to query.
public void characters(char[] characters, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void comment(char[] characters, int start, int length) throws org.xml.sax.SAXException
comment
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endCDATA()
endCDATA
in interface org.xml.sax.ext.LexicalHandler
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
public void endDTD()
endDTD
in interface org.xml.sax.ext.LexicalHandler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endEntity(java.lang.String name)
endEntity
in interface org.xml.sax.ext.LexicalHandler
public void error(org.xml.sax.SAXParseException exception)
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
public void fatalError(org.xml.sax.SAXException exception)
public void fatalError(org.xml.sax.SAXParseException exception)
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
public java.util.Collection getDiagnostics()
WSDLDiagnostic
objects.public org.w3c.dom.Document getDocument()
public void parse(org.xml.sax.InputSource inputSource)
public void parse(java.io.InputStream inputStream)
inputStream
- the source input stream. Must not be null.public void processingInstruction(java.lang.String target, java.lang.String data)
processingInstruction
in interface org.xml.sax.ContentHandler
processingInstruction
in class org.xml.sax.helpers.DefaultHandler
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
resolveEntity
in interface org.xml.sax.EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public void startCDATA()
startCDATA
in interface org.xml.sax.ext.LexicalHandler
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
startDTD
in interface org.xml.sax.ext.LexicalHandler
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startEntity(java.lang.String name)
startEntity
in interface org.xml.sax.ext.LexicalHandler
public void warning(org.xml.sax.SAXParseException exception)
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
public java.lang.String getEncoding()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |