Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TypeAttribute

    Default implementation of ITypeAttribute.

    Inheritance
    object
    Attribute
    TypeAttribute
    Implements
    ITypeAttribute
    IAttribute
    Inherited Members
    Attribute.ReflectAsString(bool)
    Attribute.ReflectWith(IAttributeReflector)
    Attribute.ToString()
    Attribute.Clone()
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Analysis.TokenAttributes
    Assembly: Lucene.Net.dll
    Syntax
    public class TypeAttribute : Attribute, ITypeAttribute, IAttribute

    Constructors

    TypeAttribute()

    Initialize this attribute with DEFAULT_TYPE

    Declaration
    public TypeAttribute()

    TypeAttribute(string)

    Initialize this attribute with type

    Declaration
    public TypeAttribute(string type)
    Parameters
    Type Name Description
    string type

    Fields

    DEFAULT_TYPE

    the default type

    Declaration
    public const string DEFAULT_TYPE = "word"
    Field Value
    Type Description
    string

    Properties

    Type

    Gets or Sets the lexical type.

    Declaration
    public virtual string Type { get; set; }
    Property Value
    Type Description
    string

    Methods

    Clear()

    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.

    Declaration
    public override void Clear()
    Overrides
    Attribute.Clear()

    CopyTo(IAttribute)

    Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the IAttributes this implementation supports.

    Declaration
    public override void CopyTo(IAttribute target)
    Parameters
    Type Name Description
    IAttribute target
    Overrides
    Attribute.CopyTo(IAttribute)

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    object other
    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()

    Implements

    ITypeAttribute
    IAttribute
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.