relational.preprocessing
Class XMLFilter
java.lang.Object
org.xml.sax.HandlerBase
relational.preprocessing.XMLFilter
- All Implemented Interfaces:
- org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class XMLFilter
- extends org.xml.sax.HandlerBase
Reads xml file and builds a graph
Constructor Summary |
XMLFilter(java.lang.String xmlFileName)
|
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(java.lang.String name)
|
static void |
main(java.lang.String[] args)
|
void |
start()
|
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
|
Methods inherited from class org.xml.sax.HandlerBase |
endDocument, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
multilabel
public static boolean multilabel
graph
public edu.uci.ics.jung.graph.impl.SparseGraph graph
type
public java.lang.String type
tobjects
public java.util.HashMap tobjects
weights
public java.util.HashMap weights
labels
public java.util.HashMap labels
XMLFilter
public XMLFilter(java.lang.String xmlFileName)
start
public void start()
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
startElement
public void startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
endElement
public void endElement(java.lang.String name)
characters
public void characters(char[] ch,
int start,
int length)
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException