org.apache.lucene.gdata.search.config
Enum IndexSchemaField.ContentType

java.lang.Object
  extended by java.lang.Enum<IndexSchemaField.ContentType>
      extended by org.apache.lucene.gdata.search.config.IndexSchemaField.ContentType
All Implemented Interfaces:
Serializable, Comparable<IndexSchemaField.ContentType>
Enclosing class:
IndexSchemaField

public static enum IndexSchemaField.ContentType
extends Enum<IndexSchemaField.ContentType>

Defines the ContentStrategy to use for a IndexSchemaField to extract the content from the entry

Author:
Simon Willnauer

Enum Constant Summary
CATEGORY
          Category content strategy GdataCategoryStrategy
CUSTOM
          Custom content strategy (user defined)
GDATADATE
          GDataDate content strategy GdataDateStrategy
HTML
          HTML content strategy HTMLStrategy
KEYWORD
          KEYWORD content strategy KeywordStrategy
MIXED
          Mixed content strategy MixedContentStrategy
TEXT
          Text content strategy PlainTextStrategy
XHTML
          XHTML content strategy XHtmlStrategy
 
Method Summary
static IndexSchemaField.ContentType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IndexSchemaField.ContentType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HTML

public static final IndexSchemaField.ContentType HTML
HTML content strategy HTMLStrategy


XHTML

public static final IndexSchemaField.ContentType XHTML
XHTML content strategy XHtmlStrategy


TEXT

public static final IndexSchemaField.ContentType TEXT
Text content strategy PlainTextStrategy


GDATADATE

public static final IndexSchemaField.ContentType GDATADATE
GDataDate content strategy GdataDateStrategy


KEYWORD

public static final IndexSchemaField.ContentType KEYWORD
KEYWORD content strategy KeywordStrategy


CATEGORY

public static final IndexSchemaField.ContentType CATEGORY
Category content strategy GdataCategoryStrategy


CUSTOM

public static final IndexSchemaField.ContentType CUSTOM
Custom content strategy (user defined)


MIXED

public static final IndexSchemaField.ContentType MIXED
Mixed content strategy MixedContentStrategy

Method Detail

values

public static final IndexSchemaField.ContentType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(IndexSchemaField.ContentType c : IndexSchemaField.ContentType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static IndexSchemaField.ContentType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name


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