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, warning
public FXGSAXScanner(Collection<ICompilerProblem> problems)
public IFXGNode getRootNode()
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
public String getDocumentPath()
public void setDocumentPath(String documentPath)
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String name) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public 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.