com.ibm.jdg2e.simplemodel
Class RoadTripHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.ibm.jdg2e.simplemodel.RoadTripHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class RoadTripHandler
- extends org.xml.sax.helpers.DefaultHandler
Supports the read/write of location data as XML content.
Data is saved to a specified file, making it possible to store data in
the plug-in's state directory or the workspace.
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoadTripHandler
public RoadTripHandler()
getRoadTrip
public IRoadTrip getRoadTrip()
getXMLRoadTrip
public static IRoadTrip getXMLRoadTrip(java.io.File xmlFile)
- Converts the XML content into an
IRoadTrip object.
- Returns:
- IRoadTrip object
saveAsXML
public static void saveAsXML(IRoadTrip roadTrip,
java.io.File xmlFile)
- Serializes the road trip model to the plug-in's state directory.
- Parameters:
roadTrip - xmlFile -
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
startElement
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
- Throws:
org.xml.sax.SAXException