org.apache.oodt.pcs.input
Class PGEDataHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.oodt.pcs.input.PGEDataHandler
- All Implemented Interfaces:
- PGEDataParseKeys, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class PGEDataHandler
- extends DefaultHandler
- implements PGEDataParseKeys
A SAX-based event handler to parse PGE data out of an underlying XML file.
- Version:
- $Revision$
- Author:
- mattmann
| Fields inherited from interface org.apache.oodt.pcs.input.PGEDataParseKeys |
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 |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
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 |
PGEDataHandler
public PGEDataHandler()
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String localName,
String qName)
throws SAXException
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class DefaultHandler
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters in interface ContentHandler- Overrides:
characters in class DefaultHandler
- Throws:
SAXException
getMatrices
public Map getMatrices()
- Returns:
- the matrices
setMatrices
public void setMatrices(Map matrices)
- Parameters:
matrices - the matrices to set
getScalars
public Map getScalars()
- Returns:
- the scalars
setScalars
public void setScalars(Map scalars)
- Parameters:
scalars - the scalars to set
getVectors
public Map getVectors()
- Returns:
- the vectors
setVectors
public void setVectors(Map vectors)
- Parameters:
vectors - the vectors to set
isParsingScalar
public boolean isParsingScalar()
isParsingVector
public boolean isParsingVector()
isParsingMatrix
public boolean isParsingMatrix()
isParsingMatrixElement
public boolean isParsingMatrixElement()
isParsingVectorElement
public boolean isParsingVectorElement()
notParsing
public boolean notParsing()
Copyright © 1999-2011 Apache OODT. All Rights Reserved.