Package org.corpus_tools.pepper.core
Class PepperParamsReader
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.xml.sax.ext.DefaultHandler2
-
- org.corpus_tools.pepper.core.PepperParamsReader
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,DeclHandler,EntityResolver2,LexicalHandler
public class PepperParamsReader extends DefaultHandler2
This class reads the 'old' pepperParams file and fills aPepperJobwith the content of the file. The pepperParams file is a relict of the times where Pepper was based on EMF. Therefore the pepperParams file is an xmi file.- Author:
- Florian Zipser
-
-
Field Summary
Fields Modifier and Type Field Description static StringATT_DEST_PATHstatic StringATT_FORMAT_NAMEstatic StringATT_FORMAT_VERSIONstatic StringATT_IDstatic StringATT_MODULE_NAMEstatic StringATT_SOURCE_PATHstatic StringATT_SPECIAL_PARAMSstatic StringELEMENT_EXPORTER_PARAMSstatic StringELEMENT_IMPORTER_PARAMSstatic StringELEMENT_MODULE_PARAMSstatic StringELEMENT_PEPPER_JOB_PARAMSstatic StringELEMENT_PEPPERPARAMSstatic StringNS_PEPPERPARAMSstatic StringNS_XMIstatic StringPREFIX_PEPPERPARAMSstatic StringPREFIX_XMI
-
Constructor Summary
Constructors Constructor Description PepperParamsReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PepperJobgetJob()ReturnsPepperJobto be filled.org.eclipse.emf.common.util.URIgetLocation()FileresolveFile(String fileStr)voidsetJob(PepperJob job)SetsPepperJobto be filled.voidsetLocation(org.eclipse.emf.common.util.URI location)voidstartElement(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
-
-
-
-
Field Detail
-
NS_XMI
public static final String NS_XMI
- See Also:
- Constant Field Values
-
PREFIX_XMI
public static final String PREFIX_XMI
- See Also:
- Constant Field Values
-
NS_PEPPERPARAMS
public static final String NS_PEPPERPARAMS
- See Also:
- Constant Field Values
-
PREFIX_PEPPERPARAMS
public static final String PREFIX_PEPPERPARAMS
- See Also:
- Constant Field Values
-
ELEMENT_PEPPERPARAMS
public static final String ELEMENT_PEPPERPARAMS
- See Also:
- Constant Field Values
-
ELEMENT_PEPPER_JOB_PARAMS
public static final String ELEMENT_PEPPER_JOB_PARAMS
- See Also:
- Constant Field Values
-
ELEMENT_IMPORTER_PARAMS
public static final String ELEMENT_IMPORTER_PARAMS
- See Also:
- Constant Field Values
-
ELEMENT_MODULE_PARAMS
public static final String ELEMENT_MODULE_PARAMS
- See Also:
- Constant Field Values
-
ELEMENT_EXPORTER_PARAMS
public static final String ELEMENT_EXPORTER_PARAMS
- See Also:
- Constant Field Values
-
ATT_ID
public static final String ATT_ID
- See Also:
- Constant Field Values
-
ATT_MODULE_NAME
public static final String ATT_MODULE_NAME
- See Also:
- Constant Field Values
-
ATT_FORMAT_NAME
public static final String ATT_FORMAT_NAME
- See Also:
- Constant Field Values
-
ATT_FORMAT_VERSION
public static final String ATT_FORMAT_VERSION
- See Also:
- Constant Field Values
-
ATT_SOURCE_PATH
public static final String ATT_SOURCE_PATH
- See Also:
- Constant Field Values
-
ATT_DEST_PATH
public static final String ATT_DEST_PATH
- See Also:
- Constant Field Values
-
ATT_SPECIAL_PARAMS
public static final String ATT_SPECIAL_PARAMS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLocation
public org.eclipse.emf.common.util.URI getLocation()
-
setLocation
public void setLocation(org.eclipse.emf.common.util.URI location)
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
-