A Token's lexical type. The Default value is "word".
More...
#include <TypeAttribute.h>
Static Protected Member Functions |
static const String & | DEFAULT_TYPE () |
Protected Attributes |
String | _type |
Detailed Description
A Token's lexical type. The Default value is "word".
Constructor & Destructor Documentation
Lucene::TypeAttribute::TypeAttribute |
( |
| ) |
|
Lucene::TypeAttribute::TypeAttribute |
( |
const String & |
type | ) |
|
virtual Lucene::TypeAttribute::~TypeAttribute |
( |
| ) |
|
|
virtual |
Member Function Documentation
static String Lucene::TypeAttribute::_getClassName |
( |
| ) |
|
|
inlinestatic |
virtual void Lucene::TypeAttribute::clear |
( |
| ) |
|
|
virtual |
Clears the values in this Attribute and resets it to its default value. If this implementation implements more than one Attribute interface it clears all.
Implements Lucene::Attribute.
Shallow clone. Subclasses must override this if they need to clone any members deeply.
- Parameters
-
base | clone reference - null when called initially, then set in top virtual override. |
Implements Lucene::Attribute.
virtual void Lucene::TypeAttribute::copyTo |
( |
const AttributePtr & |
target | ) |
|
|
virtual |
Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the Attributes this implementation supports.
Implements Lucene::Attribute.
static const String& Lucene::TypeAttribute::DEFAULT_TYPE |
( |
| ) |
|
|
staticprotected |
virtual bool Lucene::TypeAttribute::equals |
( |
const LuceneObjectPtr & |
other | ) |
|
|
virtual |
virtual String Lucene::TypeAttribute::getClassName |
( |
| ) |
|
|
inlinevirtual |
virtual int32_t Lucene::TypeAttribute::hashCode |
( |
| ) |
|
|
virtual |
Subclasses must implement this method and should compute a hashCode similar to this:
int32_t hashCode() { int32_t code = startOffset; code = code * 31 + endOffset; return code; }
see also equals(Object)
Implements Lucene::Attribute.
void Lucene::TypeAttribute::setType |
( |
const String & |
type | ) |
|
boost::shared_ptr< TypeAttribute > Lucene::TypeAttribute::shared_from_this |
( |
| ) |
|
|
inline |
virtual String Lucene::TypeAttribute::toString |
( |
| ) |
|
|
virtual |
String Lucene::TypeAttribute::type |
( |
| ) |
|
Returns this Token's lexical type. Defaults to "word".
Field Documentation
String Lucene::TypeAttribute::_type |
|
protected |
The documentation for this class was generated from the following file: