C# Class Lucene.Net.QueryParsers.Flexible.Core.Nodes.QueryNodeImpl

A QueryNodeImpl is the default implementation of the interface IQueryNode
Inheritance: IQueryNode, ICloneable
显示文件 Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
PLAINTEXT_FIELD_NAME string

Protected Properties

Property Type Description
toQueryStringIgnoreFields bool

Public Methods

Method Description
Add ( IList children ) : void
Add ( IQueryNode child ) : void
Clone ( ) : object
CloneTree ( ) : IQueryNode
ContainsTag ( string tagName ) : bool

verify if a node contains a tag

GetChildren ( ) : IList

a List for QueryNode object. Returns null, for nodes that do not contain children. All leaf Nodes return null.

GetTag ( string tagName ) : object
RemoveFromParent ( ) : void
Set ( IList children ) : void
SetTag ( string tagName, object value ) : void
ToQueryString ( IEscapeQuerySyntax escapeSyntaxParser ) : string
ToString ( ) : string

Every implementation of this class should return pseudo xml like this: For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>

UnsetTag ( string tagName ) : void

Protected Methods

Method Description
Allocate ( ) : void
IsDefaultField ( string fld ) : bool

This method is use toQueryString to detect if fld is the default field

Private Methods

Method Description
SetParent ( IQueryNode parent ) : void

Method Details

Add() public method

public Add ( IList children ) : void
children IList
return void

Add() public method

public Add ( IQueryNode child ) : void
child IQueryNode
return void

Allocate() protected method

protected Allocate ( ) : void
return void

Clone() public method

public Clone ( ) : object
return object

CloneTree() public method

public CloneTree ( ) : IQueryNode
return IQueryNode

ContainsTag() public method

verify if a node contains a tag
public ContainsTag ( string tagName ) : bool
tagName string
return bool

GetChildren() public method

a List for QueryNode object. Returns null, for nodes that do not contain children. All leaf Nodes return null.
public GetChildren ( ) : IList
return IList

GetTag() public method

public GetTag ( string tagName ) : object
tagName string
return object

IsDefaultField() protected method

This method is use toQueryString to detect if fld is the default field
protected IsDefaultField ( string fld ) : bool
fld string field name
return bool

RemoveFromParent() public method

public RemoveFromParent ( ) : void
return void

Set() public method

public Set ( IList children ) : void
children IList
return void

SetTag() public method

public SetTag ( string tagName, object value ) : void
tagName string
value object
return void

ToQueryString() public abstract method

public abstract ToQueryString ( IEscapeQuerySyntax escapeSyntaxParser ) : string
escapeSyntaxParser IEscapeQuerySyntax
return string

ToString() public method

Every implementation of this class should return pseudo xml like this: For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>
public ToString ( ) : string
return string

UnsetTag() public method

public UnsetTag ( string tagName ) : void
tagName string
return void

Property Details

PLAINTEXT_FIELD_NAME public_oe static_oe property

index default field
public static string PLAINTEXT_FIELD_NAME
return string

toQueryStringIgnoreFields protected_oe property

If set to true the the method toQueryString will not write field names
protected bool toQueryStringIgnoreFields
return bool