Package nzilbb.labbcat.model
Class Corpus
java.lang.Object
nzilbb.labbcat.model.Corpus
Corpus record.
- Author:
- Robert Fromont robert@fromont.net.nz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Getter forcorpusId
: Database key value.Getter fordescription
: Description of corpus.Getter forlanguage
: The ISO 639-1 code for the default language.getName()
Getter forname
: Corpus name.setCorpusId
(int newCorpusId) Setter forcorpusId
: Database key value.setDescription
(String newDescription) Setter fordescription
: Description of corpus.setLanguage
(String newLanguage) Setter forlanguage
: The ISO 639-1 code for the default language.Setter forname
: Corpus name.javax.json.JsonObject
toJson()
Serializes the object to JSON.
-
Constructor Details
-
Corpus
public Corpus()Default constructor. -
Corpus
public Corpus(javax.json.JsonObject json) Constructor from JSON.- Parameters:
json
- A JSON-encoded version of the corpus.
-
-
Method Details
-
getCorpusId
public int getCorpusId()Getter forcorpusId
: Database key value.- Returns:
- Database key value.
-
setCorpusId
Setter forcorpusId
: Database key value.- Parameters:
newCorpusId
- Database key value.- Returns:
- A reference to this object, so that setters can be chained.
-
getName
Getter forname
: Corpus name.- Returns:
- Corpus name.
-
setName
Setter forname
: Corpus name.- Parameters:
newName
- Corpus name.- Returns:
- A reference to this object, so that setters can be chained.
-
getLanguage
Getter forlanguage
: The ISO 639-1 code for the default language.- Returns:
- The ISO 639-1 code for the default language.
-
setLanguage
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
Getter fordescription
: Description of corpus.- Returns:
- Description of corpus.
-
setDescription
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.
-