JavaDoc polishing.

This commit is contained in:
Erwin Vervaet
2006-12-27 10:46:59 +00:00
parent 6463fa9bf9
commit 8f08279bf0
2 changed files with 17 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ public class InvalidFormatException extends NestedRuntimeException {
private String expectedFormat;
/**
* Create a new invalid format exception
* Create a new invalid format exception.
* @param invalidValue the invalid value
* @param expectedFormat the expected format
*/
@@ -38,19 +38,19 @@ public class InvalidFormatException extends NestedRuntimeException {
}
/**
* Create a new invalid format exception
* Create a new invalid format exception.
* @param invalidValue the invalid value
* @param expectedFormat the expected format
* @param cause the underlying cause of this exception
*/
public InvalidFormatException(String invalidValue, String expectedFormat, Throwable cause) {
super("Invalid format for value " + invalidValue + "; the expected format was '" + expectedFormat + "'", cause);
super("Invalid format for value '" + invalidValue + "'; the expected format was '" + expectedFormat + "'", cause);
this.invalidValue = invalidValue;
this.expectedFormat = expectedFormat;
}
/**
* Create a new invalid format exception
* Create a new invalid format exception.
* @param invalidValue the invalid value
* @param expectedFormat the expected format
* @param message a descriptive message

View File

@@ -18,18 +18,30 @@ package org.springframework.binding.format;
import org.springframework.core.enums.StaticLabeledEnum;
/**
* Format styles.
* Format styles, similar to those defined by {@link java.text.DateFormat}.
*
* @author Keith Donald
*/
public class Style extends StaticLabeledEnum {
/**
* See {@link java.text.DateFormat#FULL}.
*/
public static final Style FULL = new Style(0, "Full");
/**
* See {@link java.text.DateFormat#LONG}.
*/
public static final Style LONG = new Style(1, "Long");
/**
* See {@link java.text.DateFormat#MEDIUM}.
*/
public static final Style MEDIUM = new Style(2, "Medium");
/**
* See {@link java.text.DateFormat#SHORT}.
*/
public static final Style SHORT = new Style(3, "Short");
/**