net.sourceforge.annovalidator.util
Enum DateUtil.DateSource.SourceType

java.lang.Object
  extended by java.lang.Enum<DateUtil.DateSource.SourceType>
      extended by net.sourceforge.annovalidator.util.DateUtil.DateSource.SourceType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DateUtil.DateSource.SourceType>
Enclosing class:
DateUtil.DateSource

public static enum DateUtil.DateSource.SourceType
extends java.lang.Enum<DateUtil.DateSource.SourceType>

Defines the available sources for a date.


Enum Constant Summary
COMPOSITE
          A date composed of mulitple parts, specified by compositeDateParts().
CURRENT_DATE
          The date and time at the time the validation is performed.
TARGET_FIELD_VALUE
          The value of the Field being validated.
TARGET_OBJECT_FIELD_VALUE
          The value of the fieldName() Field of the Object being validated.
TEXT_DATE
          A plain text date specified by date().
 
Method Summary
static DateUtil.DateSource.SourceType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DateUtil.DateSource.SourceType[] 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

TARGET_FIELD_VALUE

public static final DateUtil.DateSource.SourceType TARGET_FIELD_VALUE
The value of the Field being validated.


TARGET_OBJECT_FIELD_VALUE

public static final DateUtil.DateSource.SourceType TARGET_OBJECT_FIELD_VALUE
The value of the fieldName() Field of the Object being validated.


TEXT_DATE

public static final DateUtil.DateSource.SourceType TEXT_DATE
A plain text date specified by date().


CURRENT_DATE

public static final DateUtil.DateSource.SourceType CURRENT_DATE
The date and time at the time the validation is performed.


COMPOSITE

public static final DateUtil.DateSource.SourceType COMPOSITE
A date composed of mulitple parts, specified by compositeDateParts().

Method Detail

values

public static final DateUtil.DateSource.SourceType[] 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(DateUtil.DateSource.SourceType c : DateUtil.DateSource.SourceType.values())
        System.out.println(c);

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

valueOf

public static DateUtil.DateSource.SourceType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2008. All Rights Reserved.