Interface MediaTerm
-
public interface MediaTerm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description MediaTerm[]
getBroaderTerms()
Returns an array of all terms broader than this term.String
getClassification()
Deprecated.usegetClassifications()
insteadMediaTermClassification[]
getClassifications()
Returns allMediaTermClassification
objects for thisMediaTerm
.int
getId()
Returns the id of this media term.String
getName()
Returns the name of this media term.MediaTerm[]
getNarrowerTerms()
Returns an array of all terms narrower than this term.MediaTerm[]
getRelatedTerms()
Returns an array of all terms related to this term.MediaTerm[]
getUsedByTerms()
Returns an array of all terms used by this term.MediaTerm[]
getUsedForTerms()
Returns an array of all terms used for this term.Website
getWebsite()
Returns theWebsite
that owns this term.void
setClassifications(MediaTermClassification[] classifications)
Assigns the given array ofMediaTermClassification
objects to thisMediaTerm
.
-
-
-
Method Detail
-
getId
int getId()
Returns the id of this media term.- Returns:
- the id of this media term.
-
getName
String getName()
Returns the name of this media term.- Returns:
- the name of this media term.
-
getClassification
@Deprecated String getClassification()
Deprecated.usegetClassifications()
insteadReturns the classification of this media term.- Returns:
- the classification of this media term.
-
getBroaderTerms
MediaTerm[] getBroaderTerms()
Returns an array of all terms broader than this term.- Returns:
- an array of all terms broader than this term.
-
getNarrowerTerms
MediaTerm[] getNarrowerTerms()
Returns an array of all terms narrower than this term.- Returns:
- an array of all terms narrower than this term
-
getUsedByTerms
MediaTerm[] getUsedByTerms()
Returns an array of all terms used by this term.- Returns:
- an array of all terms used by this term
-
getUsedForTerms
MediaTerm[] getUsedForTerms()
Returns an array of all terms used for this term.- Returns:
- an array of all terms used for this term
-
getRelatedTerms
MediaTerm[] getRelatedTerms()
Returns an array of all terms related to this term.- Returns:
- an array of all related terms
-
getClassifications
MediaTermClassification[] getClassifications()
Returns allMediaTermClassification
objects for thisMediaTerm
. Returns an empty array if thisMediaTerm
object has noMediaTermClassification
objects.- Returns:
- All
MediaTermClassification
objects for thisMediaTerm
. Returns an empty array if thisMediaTerm
object has noMediaTermClassification
objects.
-
setClassifications
void setClassifications(MediaTermClassification[] classifications)
Assigns the given array ofMediaTermClassification
objects to thisMediaTerm
. Note that this overwrites the currently assignedMediaTermClassification
objects, which means that if you just want to add someMediaTermClassification
objects, you have to retrieve the currently assignedMediaTermClassification
objects first.- Parameters:
classifications
- The array ofMediaTermClassification
objects which should be assigned to thisMediaTerm
.
-
-