|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
easik.sketch.util.Export.ExportHandler
public class ExportHandler
A class to parse XML specifically for database and SQL file generation. Should not be used for any other purpose, as it does not contain any graphical information.
Field Summary | |
---|---|
private java.util.ArrayList<ExportConstraint> |
_constraints
A list of all constraints found in the XML file. |
private int |
_count
A count maintained to ensure that each procedure has a unique identifier |
private ExportConstraint |
_curConstraint
The current constraint |
private java.lang.String |
_curDatatype
The current datatype |
private ExportPath |
_curPath
The current path |
private ExportUniqueKey |
_curUniqueKey
The current unique key |
private java.util.HashMap<java.lang.String,java.lang.String> |
_datatypes
A hashmap of all data types found in the XML file. |
private java.util.HashMap<java.lang.String,ExportEdge> |
_edges
HashMap of all edges to add to paths. |
private ExportTable |
_newTable
The current table being added to the database |
private java.util.HashMap<java.lang.String,ExportPath> |
_paths
HashMap of all paths in the sketch. |
private java.lang.String |
_platform
The database platform to export to |
private java.util.HashMap<java.lang.String,ExportTable> |
_tables
A HashMap of all the tables of the graph. |
Constructor Summary | |
---|---|
ExportHandler(java.lang.String platform)
Create a new instance of a SQLHandler and initialize all fields. |
Method Summary | |
---|---|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Overloaded method from the extended default handler. |
java.util.ArrayList<ExportConstraint> |
getConstraints()
Gets the constraints associated with a XML sketch |
java.lang.String |
getPlatform()
Gets the platform of the database. |
ExportTable |
getTable(java.lang.String name)
Gets the table associated with a given entity name |
java.util.HashMap<java.lang.String,ExportTable> |
getTables()
Getter method for the HashMap of all tables to be created. |
void |
startElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Overloaded method from the extended Default Handler |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.HashMap<java.lang.String,ExportTable> _tables
private java.lang.String _platform
private ExportTable _newTable
private ExportPath _curPath
private ExportConstraint _curConstraint
private ExportUniqueKey _curUniqueKey
private java.lang.String _curDatatype
private java.util.HashMap<java.lang.String,ExportEdge> _edges
private java.util.HashMap<java.lang.String,ExportPath> _paths
private java.util.ArrayList<ExportConstraint> _constraints
private java.util.HashMap<java.lang.String,java.lang.String> _datatypes
private int _count
Constructor Detail |
---|
public ExportHandler(java.lang.String platform)
platform
- The string representation of the user chosen platform.Method Detail |
---|
public java.lang.String getPlatform()
public java.util.HashMap<java.lang.String,ExportTable> getTables()
public ExportTable getTable(java.lang.String name)
name
- The name of the table
public java.util.ArrayList<ExportConstraint> getConstraints()
public void startElement(java.lang.String namespace, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
namespace
- @see org.xml.sax.helpers.DefaultHandlerlocalName
- @see org.xml.sax.helpers.DefaultHandlerqName
- @see org.xml.sax.helpers.DefaultHandleratts
- @see org.xml.sax.helpers.DefaultHandlerDefaultHandler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
uri
- localName
- qName
- DefaultHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |