This class defines a typesafe enumeration for some of the constants in DatatypeConstants . Note that it is a class, not a Java 5.0 enum type. public static final class DatatypeConstants.Field { // No Constructor // Public Instance Methods public int getId ( ); // Public Methods Overriding Object public String toString ( ); } Passed ToDuration.{getField( ) , isSet( )} Type OfDatatypeConstants.{DAYS , HOURS , MINUTES , MONTHS , SECONDS , YEARS} |