public class FXGSAXScanner extends DefaultHandler
| Constructor and Description |
|---|
FXGSAXScanner(Collection<ICompilerProblem> problems)
Construct a new FXGSAXScanner
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
protected IFXGNode |
createNode(String uri,
String localName)
Attempts to construct an instance of IFXGNode for the given element.
|
void |
endElement(String uri,
String localName,
String name) |
String |
getDocumentPath()
Get document path used for logging.
|
IFXGNode |
getRootNode()
Provides access to the root IFXGNode of the FXG document AFTER parsing.
|
int |
getStartColumn() |
int |
getStartLine() |
protected boolean |
isFXGNamespace(String uri) |
protected boolean |
isSkippedElement(String uri,
String localName,
boolean startElement)
Determines whether an element should be skipped.
|
void |
setDocumentLocator(Locator locator) |
void |
setDocumentPath(String documentPath)
Set document path used for logging.
|
void |
startDocument() |
void |
startElement(String uri,
String localName,
String name,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic FXGSAXScanner(Collection<ICompilerProblem> problems)
public IFXGNode getRootNode()
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerpublic String getDocumentPath()
public void setDocumentPath(String documentPath)
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String name) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic int getStartLine()
public int getStartColumn()
protected boolean isFXGNamespace(String uri)
uri - - the namespace URI to checkprotected boolean isSkippedElement(String uri, String localName, boolean startElement)
uri - - the namespace URI of the elementlocalName - - the name of the elementCopyright © 2016 The Apache Software Foundation. All rights reserved.