org.apache.lucene.queryParser.core.config
Class FieldConfig

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      extended by org.apache.lucene.queryParser.core.config.FieldConfig

public class FieldConfig
extends AttributeSource

This class represents a field configuration. Every configuration should be set using the methods inherited from AttributeSource.

See Also:
QueryConfigHandler, Attribute

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
AttributeSource.AttributeFactory, AttributeSource.State
 
Constructor Summary
FieldConfig(CharSequence fieldName)
          Constructs a FieldConfig
 
Method Summary
 CharSequence getFieldName()
          Returns the field name this configuration represents.
 String toString()
           
 
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldConfig

public FieldConfig(CharSequence fieldName)
Constructs a FieldConfig

Parameters:
fieldName - the field name, it cannot be null
Throws:
IllegalArgumentException - if the field name is null
Method Detail

getFieldName

public CharSequence getFieldName()
Returns the field name this configuration represents.

Returns:
the field name

toString

public String toString()
Overrides:
toString in class AttributeSource


Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.