| java.lang.Object org.xml.sax.helpers.DefaultHandler org.netbeans.modules.lexer.gen.DescriptionReader
DescriptionReader | public class DescriptionReader extends DefaultHandler (Code) | | Updates the language data by reading and interpreting
a given xml file with the language description updates.
The xml file is read in two rounds. In the first
round all the hidden token types elements
are interpreted. In the second round the rest
of the elements are interpreted.
author: Miloslav Metelka version: 1.00 |
Constructor Summary | |
public | DescriptionReader(String systemId) Create the description reader over the given systemId. |
languageData | protected LanguageData languageData(Code) | | Active language data into which the input xml is parsed.
|
DescriptionReader | public DescriptionReader(String systemId)(Code) | | Create the description reader over the given systemId.
Parameters: systemId - identification of the source xml language description file. |
applyTo | public synchronized void applyTo(LanguageData languageData) throws SAXException, IOException(Code) | | Parse the xml determined by systemId and update the languageData.
Parameters: languageData - update the language data by updating/adding mutabletokenIds. If there is an TokenId element with a name not yet presentin the languageData it will be added. Otherwise the attributes of existingmutable tokenId will be updated. throws: javax.xml.parsers.SAXException - (also encapsulates ParserConfigurationException)and IOException |
characters | public void characters(char ch, int start, int length) throws SAXException(Code) | | Characters in element
|
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|