public class TMLHandler extends DefaultHandler
Constructor and Description |
---|
TMLHandler(String path,
FSLoader loader) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] c,
int start,
int length) |
void |
endElement(String namespace_URI,
String local_name,
String qualified_name) |
void |
fatalError(SAXParseException e) |
Object[] |
getProjectData(boolean open_displays)
returns 4 objects packed in an array:
|
boolean |
isUnreadable() |
void |
notationDeclaration(String name,
String publicId,
String systemId) |
void |
skippedEntity(String name) |
void |
startElement(String namespace_URI,
String local_name,
String qualified_name,
Attributes attributes) |
void |
warning(SAXParseException e) |
endDocument, endPrefixMapping, error, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, startPrefixMapping, unparsedEntityDecl
public boolean isUnreadable()
public Object[] getProjectData(boolean open_displays)
[0] = root TemplateThing [1] = root ProjectThing (contains Project instance) [2] = root LayerThing (contains the top-level LayerSet) [3] = expanded states of all ProjectThing objects
Also, triggers the reconstruction of links and assignment of Displayable objects to their layer.
public void startElement(String namespace_URI, String local_name, String qualified_name, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String namespace_URI, String local_name, String qualified_name)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
public void characters(char[] c, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
public void fatalError(SAXParseException e)
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
public void skippedEntity(String name)
skippedEntity
in interface ContentHandler
skippedEntity
in class DefaultHandler
public void warning(SAXParseException e)
warning
in interface ErrorHandler
warning
in class DefaultHandler
Copyright © 2015–2021 Fiji. All rights reserved.