public class FormatDesc extends Object
PepperImporter or a
PepperExporter . Or it can be used to
determine the format of a corpus resource as given in CorpusDesc.
formatName - to determine the name of the formatformatVersion - to determine the version of the formatformatReference - to set a link to a more detailed description,
in most cases this is optional| Modifier and Type | Class and Description |
|---|---|
static class |
FormatDesc.FormatDescBuilder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
formatName
Name of the linguistic format.
|
protected org.eclipse.emf.common.util.URI |
formatReference
Documentation reference for the linguistic format.
|
protected String |
formatVersion
The version of the format.
|
| Constructor and Description |
|---|
FormatDesc()
Initilizes an object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares a
CorpusDesc object with this object. |
String |
getFormatName()
Returns the name of the linguistic format.
|
org.eclipse.emf.common.util.URI |
getFormatReference()
Returns the documentation reference for the linguistic format.
|
String |
getFormatVersion()
Returns the version of the linguistic format.
|
int |
hashCode()
This method is overwritten because of findbugs.
|
FormatDesc |
setFormatName(String formatName)
Sets the name of the linguistic format.
|
FormatDesc |
setFormatReference(org.eclipse.emf.common.util.URI formatReference)
Sets the documentation reference for the linguistic format.
|
FormatDesc |
setFormatVersion(String formatVersion)
Sets the version of the linguistic format.
|
String |
toString()
Returns a String representation of this object.
|
protected String formatName
protected String formatVersion
protected org.eclipse.emf.common.util.URI formatReference
public FormatDesc setFormatName(String formatName)
formatName - name of the format to be usedpublic String getFormatName()
public String getFormatVersion()
public FormatDesc setFormatVersion(String formatVersion)
formatVersion - version of the formatpublic org.eclipse.emf.common.util.URI getFormatReference()
link - to a documentationpublic FormatDesc setFormatReference(org.eclipse.emf.common.util.URI formatReference)
formatReference - link to documentationpublic boolean equals(Object obj)
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.public int hashCode()
Copyright © 2009–2018 Humboldt-Universität zu Berlin, INRIA. All rights reserved.