Class SearchMetadataImpl<T>
java.lang.Object
org.opencastproject.elasticsearch.impl.SearchMetadataImpl<T>
- All Implemented Interfaces:
org.opencastproject.elasticsearch.api.SearchMetadata<T>
public class SearchMetadataImpl<T>
extends Object
implements org.opencastproject.elasticsearch.api.SearchMetadata<T>
Default implementation for the
SearchMetadata.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSearchMetadataImpl(String name) Creates a new metadata item with the given name. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocalizedValue(org.opencastproject.elasticsearch.api.Language language, T v) Addsvalueto the list of language neutral values.booleanvoidvoidclear()booleangetName()getValue()inthashCode()booleanvoidsetAddToText(boolean addToText) toString()
-
Field Details
-
name
The name of this metadata item -
values
Values -
localizedValues
Localized values -
addToText
protected boolean addToTextTrue to add the values to the fulltext index
-
-
Constructor Details
-
SearchMetadataImpl
Creates a new metadata item with the given name.- Parameters:
name- the name
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.opencastproject.elasticsearch.api.SearchMetadata<T>- See Also:
-
isLocalized
public boolean isLocalized()- Specified by:
isLocalizedin interfaceorg.opencastproject.elasticsearch.api.SearchMetadata<T>- See Also:
-
addLocalizedValue
Addsvalueto the list of language neutral values.- Specified by:
addLocalizedValuein interfaceorg.opencastproject.elasticsearch.api.SearchMetadata<T>- Parameters:
language- the languagev- the value
-
getLocalizedValues
- Specified by:
getLocalizedValuesin interfaceorg.opencastproject.elasticsearch.api.SearchMetadata<T>- See Also:
-
addValue
- Specified by:
addValuein interfaceorg.opencastproject.elasticsearch.api.SearchMetadata<T>- See Also:
-
getValues
- Specified by:
getValuesin interfaceorg.opencastproject.elasticsearch.api.SearchMetadata<T>- See Also:
-
getValue
- Specified by:
getValuein interfaceorg.opencastproject.elasticsearch.api.SearchMetadata<T>- See Also:
-
setAddToText
public void setAddToText(boolean addToText) - Specified by:
setAddToTextin interfaceorg.opencastproject.elasticsearch.api.SearchMetadata<T>- See Also:
-
addToText
public boolean addToText()- Specified by:
addToTextin interfaceorg.opencastproject.elasticsearch.api.SearchMetadata<T>
-
clear
public void clear()- Specified by:
clearin interfaceorg.opencastproject.elasticsearch.api.SearchMetadata<T>- See Also:
-
hashCode
public int hashCode() -
equals
-
toString
-