Class CheckClearAttributesAttribute
Attribute that records if it was cleared or not. this is used for testing that Lucene.Net.Util.AttributeSource.ClearAttributes() was called correctly.
Inherited Members
Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net.TestFramework.dll
Syntax
public sealed class CheckClearAttributesAttribute : Attribute, ICheckClearAttributesAttribute, IAttribute
Methods
Clear()
Clears the values in this Lucene.Net.Util.Attribute and resets it to its default value. If this implementation implements more than one Lucene.Net.Util.Attribute interface it clears all.
Declaration
public override void Clear()
Overrides
CopyTo(IAttribute)
Copies the values from this Lucene.Net.Util.Attribute into the passed-in
target
attribute. The target
implementation must support all the
Lucene.Net.Util.IAttributes this implementation supports.
Declaration
public override void CopyTo(IAttribute target)
Parameters
Type | Name | Description |
---|---|---|
IAttribute | target |
Overrides
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
GetAndResetClearCalled()
Attribute that records if it was cleared or not. this is used for testing that Lucene.Net.Util.AttributeSource.ClearAttributes() was called correctly.
Declaration
public bool GetAndResetClearCalled()
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |