Class KeywordAnnotationImpl
java.lang.Object
org.opencastproject.metadata.mpeg7.KeywordAnnotationImpl
- All Implemented Interfaces:
XmlElement,KeywordAnnotation
TODO: Comment me!
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.metadata.mpeg7.KeywordAnnotation
KeywordAnnotation.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe keywordprotected KeywordAnnotation.TypeKeyword type -
Constructor Summary
ConstructorsConstructorDescriptionKeywordAnnotationImpl(String keyword) Creates a new keyword annotation.KeywordAnnotationImpl(String keyword, KeywordAnnotation.Type type) Creates a new keyword annotation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the keyword.getType()Returns the type of this keyword annotation.Returns an xml node representation of this element.
-
Field Details
-
keyword
The keyword -
type
Keyword type
-
-
Constructor Details
-
KeywordAnnotationImpl
Creates a new keyword annotation.- Parameters:
keyword- the keyword
-
KeywordAnnotationImpl
Creates a new keyword annotation.- Parameters:
keyword- the keywordtype- the type
-
-
Method Details
-
getKeyword
Description copied from interface:KeywordAnnotationReturns the keyword.- Specified by:
getKeywordin interfaceKeywordAnnotation- Returns:
- the keyword
- See Also:
-
getType
Description copied from interface:KeywordAnnotationReturns the type of this keyword annotation. The default value ismain.- Specified by:
getTypein interfaceKeywordAnnotation- Returns:
- the keyword type
- See Also:
-
toXml
Description copied from interface:XmlElementReturns an xml node representation of this element.- Specified by:
toXmlin interfaceXmlElement- Parameters:
document- the enclosing xml document- Returns:
- the xml node
- See Also:
-