org.apache.lucene.analysis.sinks.TokenTypeSinkFilter.accept C# (CSharp) Method

accept() public method

public accept ( org.apache.lucene.util.AttributeSource source ) : bool
source org.apache.lucene.util.AttributeSource
return bool
	  public override bool accept(AttributeSource source)
	  {
		if (typeAtt == null)
		{
		  typeAtt = source.addAttribute(typeof(TypeAttribute));
		}

		//check to see if this is a Category
		return (typeToMatch.Equals(typeAtt.type()));
	  }