Pepper  3.6.0
A highly extensible plattform for conversion and manipulationoflinguisticdata.
org.corpus_tools.pepper.core.WorkflowDescriptionReader Class Reference

This class reads the 'new' workflow description file version 1.0 and fills the passed PepperJob object with the content of the read file. More...

Inherits DefaultHandler2.

Public Member Functions

PepperJob getPepperJob ()
 Returns PepperJob object to be filled with content.
 
void setPepperJob (PepperJob pepperJob)
 Sets PepperJob object to be filled with content.
 
URI getLocation ()
 
void setLocation (URI location)
 
void startElement (String uri, String localName, String qName, Attributes attributes) throws SAXException
 
void characters (char[] ch, int start, int length) throws SAXException
 Reads the property values and adds them to property object.
 
void endElement (String uri, String localName, String qName) throws SAXException
 If a property has no value, it must be created here.
 
URI resolveURI (String path)
 Transforms a given String to a URI. More...
 

Static Public Attributes

static final String TAG_PEPEPR_JOB = "pepper-job"
 
static final String TAG_CUSTOMIZATION = "customization"
 
static final String TAG_PROP = "property"
 
static final String TAG_IMPORTER = "importer"
 
static final String TAG_MANIPULATOR = "manipulator"
 
static final String TAG_EXPORTER = "exporter"
 
static final String ATT_ID = "id"
 
static final String ATT_VERSION = "version"
 
static final String ATT_KEY = "key"
 
static final String ATT_PATH = "path"
 
static final String ATT_NAME = "name"
 
static final String ATT_FORMAT_NAME = "formatName"
 
static final String ATT_FORMAT_VERSION = "formatVersion"
 

Detailed Description

This class reads the 'new' workflow description file version 1.0 and fills the passed PepperJob object with the content of the read file.

The workflow description file has to be conform to ./src/main/resources/workflowDescription_10.rnc.

Author
Florian Zipser

Member Function Documentation

◆ resolveURI()

URI org.corpus_tools.pepper.core.WorkflowDescriptionReader.resolveURI ( String  path)

Transforms a given String to a URI.

A File-URI is returned if:

  • String is relative
  • starts with '/'
  • second character is 'colon' and third character is '\', this is to support windows pathes
  • starts with file scheme,

, a generic URI otherwise.

Parameters
path
Returns