org.apache.lucene.analysis.morfologik
Class MorphosyntacticTagAttributeImpl

java.lang.Object
  extended by org.apache.lucene.util.AttributeImpl
      extended by org.apache.lucene.analysis.morfologik.MorphosyntacticTagAttributeImpl
All Implemented Interfaces:
Cloneable, MorphosyntacticTagAttribute, Attribute

public class MorphosyntacticTagAttributeImpl
extends AttributeImpl
implements MorphosyntacticTagAttribute, Cloneable

Morphosyntactic annotations for surface forms.

See Also:
MorphosyntacticTagAttribute

Constructor Summary
MorphosyntacticTagAttributeImpl()
           
 
Method Summary
 void clear()
          Clear to default value.
 MorphosyntacticTagAttributeImpl clone()
           
 void copyTo(AttributeImpl target)
           
 boolean equals(Object other)
           
 CharSequence getTag()
          Returns the POS tag of the term.
 int hashCode()
           
 void setTag(CharSequence pos)
          Set the tag.
 
Methods inherited from class org.apache.lucene.util.AttributeImpl
reflectAsString, reflectWith
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MorphosyntacticTagAttributeImpl

public MorphosyntacticTagAttributeImpl()
Method Detail

setTag

public void setTag(CharSequence pos)
Set the tag.

Specified by:
setTag in interface MorphosyntacticTagAttribute
Parameters:
pos - POS tag corresponding to current lemma

getTag

public CharSequence getTag()
Returns the POS tag of the term. If you need a copy of this char sequence, clone it because it may change with each new term!

Specified by:
getTag in interface MorphosyntacticTagAttribute

clear

public void clear()
Description copied from interface: MorphosyntacticTagAttribute
Clear to default value.

Specified by:
clear in interface MorphosyntacticTagAttribute
Specified by:
clear in class AttributeImpl

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

copyTo

public void copyTo(AttributeImpl target)
Specified by:
copyTo in class AttributeImpl

clone

public MorphosyntacticTagAttributeImpl clone()
Overrides:
clone in class AttributeImpl


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.