net.ontopia.infoset.fulltext.core
Class GenericField

java.lang.Object
  extended by net.ontopia.infoset.fulltext.core.GenericField
All Implemented Interfaces:
FieldIF

public class GenericField
extends java.lang.Object
implements FieldIF

INTERNAL: A generic document field.


Field Summary
protected  boolean index
           
protected  java.lang.String name
           
protected  java.io.Reader reader
           
protected  boolean store
           
protected  boolean tokenize
           
protected  java.lang.String value
           
 
Constructor Summary
GenericField(java.lang.String name, java.io.Reader value, boolean store, boolean index, boolean tokenize)
           
GenericField(java.lang.String name, java.lang.String value, boolean store, boolean index, boolean tokenize)
           
 
Method Summary
static FieldIF createKeywordField(java.lang.String name, java.lang.String value)
           
static FieldIF createTextField(java.lang.String name, java.lang.String value)
           
static FieldIF createUnstoredField(java.lang.String name, java.io.Reader reader)
           
static FieldIF createUnstoredField(java.lang.String name, java.lang.String value)
           
 java.lang.String getName()
          INTERNAL: Returns the name of the field.
 java.io.Reader getReader()
          INTERNAL: Returns the Reader value of the field.
 java.lang.String getValue()
          INTERNAL: Returns the String value of the field.
 boolean isIndexed()
          INTERNAL: Returns true if the field is to be indexed, so that it may be searched on.
 boolean isStored()
          INTERNAL: Returns true if the field is to be stored in the index for return with search hits.
 boolean isTokenized()
          INTERNAL: Returns true if the field is to be tokenized prior to indexing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

value

protected java.lang.String value

reader

protected java.io.Reader reader

store

protected boolean store

index

protected boolean index

tokenize

protected boolean tokenize
Constructor Detail

GenericField

public GenericField(java.lang.String name,
                    java.lang.String value,
                    boolean store,
                    boolean index,
                    boolean tokenize)

GenericField

public GenericField(java.lang.String name,
                    java.io.Reader value,
                    boolean store,
                    boolean index,
                    boolean tokenize)
Method Detail

createUnstoredField

public static FieldIF createUnstoredField(java.lang.String name,
                                          java.lang.String value)

createUnstoredField

public static FieldIF createUnstoredField(java.lang.String name,
                                          java.io.Reader reader)

createKeywordField

public static FieldIF createKeywordField(java.lang.String name,
                                         java.lang.String value)

createTextField

public static FieldIF createTextField(java.lang.String name,
                                      java.lang.String value)

getName

public java.lang.String getName()
Description copied from interface: FieldIF
INTERNAL: Returns the name of the field.

Specified by:
getName in interface FieldIF

getValue

public java.lang.String getValue()
Description copied from interface: FieldIF
INTERNAL: Returns the String value of the field. Note that null is returned if the field has a reader set.

Specified by:
getValue in interface FieldIF

getReader

public java.io.Reader getReader()
Description copied from interface: FieldIF
INTERNAL: Returns the Reader value of the field. Note that null is returned if the field has a value set.

Specified by:
getReader in interface FieldIF

isStored

public boolean isStored()
Description copied from interface: FieldIF
INTERNAL: Returns true if the field is to be stored in the index for return with search hits.

Specified by:
isStored in interface FieldIF

isIndexed

public boolean isIndexed()
Description copied from interface: FieldIF
INTERNAL: Returns true if the field is to be indexed, so that it may be searched on.

Specified by:
isIndexed in interface FieldIF

isTokenized

public boolean isTokenized()
Description copied from interface: FieldIF
INTERNAL: Returns true if the field is to be tokenized prior to indexing.

Specified by:
isTokenized in interface FieldIF


Copyright © 2000-2012 Ontopia.