Class MorphosyntacticTagsAttributeImpl
- java.lang.Object
-
- org.apache.lucene.util.AttributeImpl
-
- org.apache.lucene.analysis.morfologik.MorphosyntacticTagsAttributeImpl
-
- All Implemented Interfaces:
Cloneable,MorphosyntacticTagsAttribute,Attribute
public class MorphosyntacticTagsAttributeImpl extends AttributeImpl implements MorphosyntacticTagsAttribute
Morphosyntactic annotations for surface forms.- See Also:
MorphosyntacticTagsAttribute
-
-
Constructor Summary
Constructors Constructor Description MorphosyntacticTagsAttributeImpl()Initializes this attribute with no tags
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear to default value.MorphosyntacticTagsAttributeImplclone()voidcopyTo(AttributeImpl target)booleanequals(Object other)List<StringBuilder>getTags()Returns the POS tag of the term.inthashCode()voidreflectWith(AttributeReflector reflector)voidsetTags(List<StringBuilder> tags)Sets the internal tags reference to the given list.-
Methods inherited from class org.apache.lucene.util.AttributeImpl
end, reflectAsString
-
-
-
-
Method Detail
-
getTags
public List<StringBuilder> getTags()
Returns the POS tag of the term. If you need a copy of this char sequence, copy its contents (and cloneStringBuilders) because it changes with each new term to avoid unnecessary memory allocations.- Specified by:
getTagsin interfaceMorphosyntacticTagsAttribute
-
clear
public void clear()
Description copied from interface:MorphosyntacticTagsAttributeClear to default value.- Specified by:
clearin interfaceMorphosyntacticTagsAttribute- Specified by:
clearin classAttributeImpl
-
setTags
public void setTags(List<StringBuilder> tags)
Sets the internal tags reference to the given list. The contents is not copied.- Specified by:
setTagsin interfaceMorphosyntacticTagsAttribute- Parameters:
tags- A list of POS tags corresponding to current lemma.
-
copyTo
public void copyTo(AttributeImpl target)
- Specified by:
copyToin classAttributeImpl
-
clone
public MorphosyntacticTagsAttributeImpl clone()
- Overrides:
clonein classAttributeImpl
-
reflectWith
public void reflectWith(AttributeReflector reflector)
- Specified by:
reflectWithin classAttributeImpl
-
-