|
||||||||||
| 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. |
|
| 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. |
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()
| 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.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void comment(char[] characters,
int start,
int length)
throws org.xml.sax.SAXException
comment in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionpublic void endCDATA()
endCDATA in interface org.xml.sax.ext.LexicalHandlerpublic void endDocument()
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerpublic 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.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void endEntity(java.lang.String name)
endEntity in interface org.xml.sax.ext.LexicalHandlerpublic void error(org.xml.sax.SAXParseException exception)
error in interface org.xml.sax.ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlerpublic void fatalError(org.xml.sax.SAXException exception)
public void fatalError(org.xml.sax.SAXParseException exception)
fatalError in interface org.xml.sax.ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlerpublic 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.ContentHandlerprocessingInstruction 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.EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerpublic void startCDATA()
startCDATA in interface org.xml.sax.ext.LexicalHandlerpublic void startDocument()
startDocument in interface org.xml.sax.ContentHandlerstartDocument 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.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void startEntity(java.lang.String name)
startEntity in interface org.xml.sax.ext.LexicalHandlerpublic void warning(org.xml.sax.SAXParseException exception)
warning in interface org.xml.sax.ErrorHandlerwarning in class org.xml.sax.helpers.DefaultHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||