Package repast.simphony.parameter
Class ParametersParser
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.xml.sax.ext.DefaultHandler2
-
- repast.simphony.parameter.ParametersParser
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,DeclHandler
,EntityResolver2
,LexicalHandler
public class ParametersParser extends DefaultHandler2
Parser for parsing parameter defs and values in xml format.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description ParametersParser(File file)
ParametersParser(Parameters params, File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parameters
getParameters()
void
startElement(String uri, String localName, String qName, Attributes attributes)
-
Methods inherited from class org.xml.sax.ext.DefaultHandler2
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
ParametersParser
public ParametersParser(Parameters params, File file) throws IOException, SAXException, ParserConfigurationException
-
ParametersParser
public ParametersParser(File file) throws ParserConfigurationException, SAXException, IOException
-
-
Method Detail
-
getParameters
public Parameters getParameters()
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
-