Interface KeywordAnnotation

All Superinterfaces:
XmlElement
All Known Implementing Classes:
KeywordAnnotationImpl

public interface KeywordAnnotation extends 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 Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Enumeration defining possible types for a keyword annotation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the keyword.
    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

      Returns the type of this keyword annotation. The default value is main.
      Returns:
      the keyword type