Package nzilbb.labbcat.model
Class Corpus
- java.lang.Object
-
- nzilbb.labbcat.model.Corpus
-
public class Corpus extends Object
Corpus record.- Author:
- Robert Fromont robert@fromont.net.nz
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCorpusId()Getter forcorpusId: Database key value.StringgetDescription()Getter fordescription: Description of corpus.StringgetLanguage()Getter forlanguage: The ISO 639-1 code for the default language.StringgetName()Getter forname: Corpus name.CorpussetCorpusId(int newCorpusId)Setter forcorpusId: Database key value.CorpussetDescription(String newDescription)Setter fordescription: Description of corpus.CorpussetLanguage(String newLanguage)Setter forlanguage: The ISO 639-1 code for the default language.CorpussetName(String newName)Setter forname: Corpus name.javax.json.JsonObjecttoJson()Serializes the object to JSON.
-
-
-
Method Detail
-
getCorpusId
public int getCorpusId()
Getter forcorpusId: Database key value.- Returns:
- Database key value.
-
setCorpusId
public Corpus setCorpusId(int newCorpusId)
Setter forcorpusId: Database key value.- Parameters:
newCorpusId- Database key value.- Returns:
- A reference to this object, so that setters can be chained.
-
getName
public String getName()
Getter forname: Corpus name.- Returns:
- Corpus name.
-
setName
public Corpus setName(String newName)
Setter forname: Corpus name.- Parameters:
newName- Corpus name.- Returns:
- A reference to this object, so that setters can be chained.
-
getLanguage
public String getLanguage()
Getter forlanguage: The ISO 639-1 code for the default language.- Returns:
- The ISO 639-1 code for the default language.
-
setLanguage
public Corpus setLanguage(String newLanguage)
Setter forlanguage: The ISO 639-1 code for the default language.- Parameters:
newLanguage- The ISO 639-1 code for the default language.- Returns:
- A reference to this object, so that setters can be chained.
-
getDescription
public String getDescription()
Getter fordescription: Description of corpus.- Returns:
- Description of corpus.
-
setDescription
public Corpus setDescription(String newDescription)
Setter fordescription: Description of corpus.- Parameters:
newDescription- Description of corpus.- Returns:
- A reference to this object, so that setters can be chained.
-
toJson
public javax.json.JsonObject toJson()
Serializes the object to JSON.- Returns:
- A JSON serialization of the object.
-
-