Interface KeywordAnnotation
- All Superinterfaces:
org.opencastproject.mediapackage.XmlElement
- All Known Implementing Classes:
KeywordAnnotationImpl
public interface KeywordAnnotation
extends org.opencastproject.mediapackage.XmlElement
Models a keyword annotation with relevance, confidence and the keyword itself.
<complexType name="KeywordAnnotationType">
<sequence>
<element name="Keyword" minOccurs="1" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="mpeg7:TextualType">
<attribute name="type" use="optional" default="main">
<simpleType>
<restriction base="NMTOKEN">
<enumeration value="main"/>
<enumeration value="secondary"/>
<enumeration value="other"/>
</restriction>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
</element>
</sequence>
<attribute ref="xml:lang" use="optional"/>
</complexType>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumeration defining possible types for a keyword annotation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the keyword.getType()Returns the type of this keyword annotation.Methods inherited from interface org.opencastproject.mediapackage.XmlElement
toXml
-
Method Details
-
getKeyword
String getKeyword()Returns the keyword.- Returns:
- the keyword
-
getType
KeywordAnnotation.Type getType()Returns the type of this keyword annotation. The default value ismain.- Returns:
- the keyword type
-