public class PGEDataHandler extends org.xml.sax.helpers.DefaultHandler implements PGEDataParseKeys
A SAX-based event handler to parse PGE data out of an underlying XML file.
COLS_ATTR, GROUP_TAG_NAME, MATRIX_COL_TAG, MATRIX_ROW_TAG, MATRIX_TAG_NAME, NAME_ATTR, PARSING_MATRIX, PARSING_SCALAR, PARSING_VEC, PGE_INPUT_TAG_NAME, ROWS_ATTR, SCALAR_TAG_NAME, UNSET, VECTOR_ELEMENT_TAG, VECTOR_TAG_NAME| Constructor and Description |
|---|
PGEDataHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
Map |
getMatrices() |
Map |
getScalars() |
Map |
getVectors() |
boolean |
isParsingMatrix() |
boolean |
isParsingMatrixElement() |
boolean |
isParsingScalar() |
boolean |
isParsingVector() |
boolean |
isParsingVectorElement() |
boolean |
notParsing() |
void |
setMatrices(Map matrices) |
void |
setScalars(Map scalars) |
void |
setVectors(Map vectors) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic Map getMatrices()
public void setMatrices(Map matrices)
matrices - the matrices to setpublic Map getScalars()
public void setScalars(Map scalars)
scalars - the scalars to setpublic Map getVectors()
public void setVectors(Map vectors)
vectors - the vectors to setpublic boolean isParsingScalar()
public boolean isParsingVector()
public boolean isParsingMatrix()
public boolean isParsingMatrixElement()
public boolean isParsingVectorElement()
public boolean notParsing()
Copyright © 1999-2014 Apache OODT. All Rights Reserved.