Pepper 3.7.0
A highly extensible plattform for conversion and
|
This class is used by Pepper to describe a linguistic data format. More...
Classes | |
class | FormatDescBuilder |
Public Member Functions | |
FormatDesc () | |
Initilizes an object. | |
FormatDesc | setFormatName (String formatName) |
Sets the name of the linguistic format. | |
String | getFormatName () |
Returns the name of the linguistic format. | |
String | getFormatVersion () |
Returns the version of the linguistic format. | |
FormatDesc | setFormatVersion (String formatVersion) |
Sets the version of the linguistic format. | |
URI | getFormatReference () |
Returns the documentation reference for the linguistic format. | |
FormatDesc | setFormatReference (URI formatReference) |
Sets the documentation reference for the linguistic format. | |
boolean | equals (Object obj) |
Compares a CorpusDesc object with this object. | |
int | hashCode () |
This method is overwritten because of findbugs. | |
String | toString () |
Returns a String representation of this object. | |
This class is used by Pepper to describe a linguistic data format.
Such an object is used for instance to describe the set of formats which can be handled by a org.corpus_tools.pepper.modules.PepperImporter
or a org.corpus_tools.pepper.modules.PepperExporter
. Or it can be used to determine the format of a corpus resource as given in CorpusDesc
.
Main fields are:
formatName
- to determine the name of the format formatVersion
- to determine the version of the format formatReference
- to set a link to a more detailed description, in most cases this is optional boolean org.corpus_tools.pepper.common.FormatDesc.equals | ( | Object | obj | ) |
Compares a CorpusDesc
object with this object.
Both objects are equal, if and only if the have the same format name and format version. The comparison is case insensitive.
String org.corpus_tools.pepper.common.FormatDesc.getFormatName | ( | ) |
Returns the name of the linguistic format.
URI org.corpus_tools.pepper.common.FormatDesc.getFormatReference | ( | ) |
Returns the documentation reference for the linguistic format.
link | to a documentation |
String org.corpus_tools.pepper.common.FormatDesc.getFormatVersion | ( | ) |
Returns the version of the linguistic format.
FormatDesc org.corpus_tools.pepper.common.FormatDesc.setFormatName | ( | String | formatName | ) |
Sets the name of the linguistic format.
formatName | name of the format to be used |
FormatDesc org.corpus_tools.pepper.common.FormatDesc.setFormatReference | ( | URI | formatReference | ) |
Sets the documentation reference for the linguistic format.
formatReference | link to documentation |
FormatDesc org.corpus_tools.pepper.common.FormatDesc.setFormatVersion | ( | String | formatVersion | ) |
Sets the version of the linguistic format.
formatVersion | version of the format |
String org.corpus_tools.pepper.common.FormatDesc.toString | ( | ) |
Returns a String representation of this object.
Note: This String cannot be used for serialization/ deserialization.</string>