org.odftoolkit.simple.common.field
Enum Field.FieldType

java.lang.Object
  extended by java.lang.Enum<Field.FieldType>
      extended by org.odftoolkit.simple.common.field.Field.FieldType
All Implemented Interfaces:
Serializable, Comparable<Field.FieldType>
Enclosing class:
Field

public static enum Field.FieldType
extends Enum<Field.FieldType>

A FieldType specifies the type of a field.

Since:
0.5

Enum Constant Summary
AUTHOR_INITIALS_FIELD
           
AUTHOR_NAME_FIELD
           
CHAPTER_FIELD
           
CONDITION_FIELD
           
CURRENT_PAGE_NUMBER_FIELD
           
DATE_FIELD
           
FIXED_DATE_FIELD
           
FIXED_TIME_FIELD
           
HIDDEN_TEXT_FIELD
           
NEXT_PAGE_NUMBER_FIELD
           
PAGE_COUNT_FIELD
           
PREVIOUS_PAGE_NUMBER_FIELD
           
REFERENCE_FIELD
           
SIMPLE_VARIABLE_FIELD
           
SUBJECT_FIELD
           
TIME_FIELD
           
TITLE_FIELD
           
USER_VARIABLE_FIELD
           
 
Method Summary
static Field.FieldType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Field.FieldType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DATE_FIELD

public static final Field.FieldType DATE_FIELD

FIXED_DATE_FIELD

public static final Field.FieldType FIXED_DATE_FIELD

TIME_FIELD

public static final Field.FieldType TIME_FIELD

FIXED_TIME_FIELD

public static final Field.FieldType FIXED_TIME_FIELD

PREVIOUS_PAGE_NUMBER_FIELD

public static final Field.FieldType PREVIOUS_PAGE_NUMBER_FIELD

CURRENT_PAGE_NUMBER_FIELD

public static final Field.FieldType CURRENT_PAGE_NUMBER_FIELD

NEXT_PAGE_NUMBER_FIELD

public static final Field.FieldType NEXT_PAGE_NUMBER_FIELD

PAGE_COUNT_FIELD

public static final Field.FieldType PAGE_COUNT_FIELD

TITLE_FIELD

public static final Field.FieldType TITLE_FIELD

SUBJECT_FIELD

public static final Field.FieldType SUBJECT_FIELD

AUTHOR_NAME_FIELD

public static final Field.FieldType AUTHOR_NAME_FIELD

AUTHOR_INITIALS_FIELD

public static final Field.FieldType AUTHOR_INITIALS_FIELD

CHAPTER_FIELD

public static final Field.FieldType CHAPTER_FIELD

REFERENCE_FIELD

public static final Field.FieldType REFERENCE_FIELD

SIMPLE_VARIABLE_FIELD

public static final Field.FieldType SIMPLE_VARIABLE_FIELD

USER_VARIABLE_FIELD

public static final Field.FieldType USER_VARIABLE_FIELD

CONDITION_FIELD

public static final Field.FieldType CONDITION_FIELD

HIDDEN_TEXT_FIELD

public static final Field.FieldType HIDDEN_TEXT_FIELD
Method Detail

values

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

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

valueOf

public static Field.FieldType 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
NullPointerException - if the argument is null


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.