summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/data/util/converter
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/data/util/converter')
-rw-r--r--src/com/vaadin/data/util/converter/DateToLongConverter.java4
-rw-r--r--src/com/vaadin/data/util/converter/DefaultConverterFactory.java1
-rw-r--r--src/com/vaadin/data/util/converter/ReverseConverter.java4
-rw-r--r--src/com/vaadin/data/util/converter/StringToBooleanConverter.java4
-rw-r--r--src/com/vaadin/data/util/converter/StringToDateConverter.java4
-rw-r--r--src/com/vaadin/data/util/converter/StringToDoubleConverter.java4
-rw-r--r--src/com/vaadin/data/util/converter/StringToIntegerConverter.java4
-rw-r--r--src/com/vaadin/data/util/converter/StringToNumberConverter.java4
8 files changed, 29 insertions, 0 deletions
diff --git a/src/com/vaadin/data/util/converter/DateToLongConverter.java b/src/com/vaadin/data/util/converter/DateToLongConverter.java
index 537800f617..aeba38aa1f 100644
--- a/src/com/vaadin/data/util/converter/DateToLongConverter.java
+++ b/src/com/vaadin/data/util/converter/DateToLongConverter.java
@@ -24,6 +24,7 @@ public class DateToLongConverter implements Converter<Date, Long> {
* com.vaadin.data.util.converter.Converter#convertToModel(java.lang.Object,
* java.util.Locale)
*/
+ @Override
public Long convertToModel(Date value, Locale locale) {
if (value == null) {
return null;
@@ -39,6 +40,7 @@ public class DateToLongConverter implements Converter<Date, Long> {
* com.vaadin.data.util.converter.Converter#convertToPresentation(java.lang
* .Object, java.util.Locale)
*/
+ @Override
public Date convertToPresentation(Long value, Locale locale) {
if (value == null) {
return null;
@@ -52,6 +54,7 @@ public class DateToLongConverter implements Converter<Date, Long> {
*
* @see com.vaadin.data.util.converter.Converter#getModelType()
*/
+ @Override
public Class<Long> getModelType() {
return Long.class;
}
@@ -61,6 +64,7 @@ public class DateToLongConverter implements Converter<Date, Long> {
*
* @see com.vaadin.data.util.converter.Converter#getPresentationType()
*/
+ @Override
public Class<Date> getPresentationType() {
return Date.class;
}
diff --git a/src/com/vaadin/data/util/converter/DefaultConverterFactory.java b/src/com/vaadin/data/util/converter/DefaultConverterFactory.java
index 3ad7b6a85b..afb95d81ed 100644
--- a/src/com/vaadin/data/util/converter/DefaultConverterFactory.java
+++ b/src/com/vaadin/data/util/converter/DefaultConverterFactory.java
@@ -27,6 +27,7 @@ public class DefaultConverterFactory implements ConverterFactory {
private final static Logger log = Logger
.getLogger(DefaultConverterFactory.class.getName());
+ @Override
public <PRESENTATION, MODEL> Converter<PRESENTATION, MODEL> createConverter(
Class<PRESENTATION> presentationType, Class<MODEL> modelType) {
Converter<PRESENTATION, MODEL> converter = findConverter(
diff --git a/src/com/vaadin/data/util/converter/ReverseConverter.java b/src/com/vaadin/data/util/converter/ReverseConverter.java
index 1c561f29e8..fa1bb5daf1 100644
--- a/src/com/vaadin/data/util/converter/ReverseConverter.java
+++ b/src/com/vaadin/data/util/converter/ReverseConverter.java
@@ -42,6 +42,7 @@ public class ReverseConverter<PRESENTATION, MODEL> implements
* @see com.vaadin.data.util.converter.Converter#convertToModel(java
* .lang.Object, java.util.Locale)
*/
+ @Override
public MODEL convertToModel(PRESENTATION value, Locale locale)
throws com.vaadin.data.util.converter.Converter.ConversionException {
return realConverter.convertToPresentation(value, locale);
@@ -54,6 +55,7 @@ public class ReverseConverter<PRESENTATION, MODEL> implements
* com.vaadin.data.util.converter.Converter#convertToPresentation(java.lang
* .Object, java.util.Locale)
*/
+ @Override
public PRESENTATION convertToPresentation(MODEL value, Locale locale)
throws com.vaadin.data.util.converter.Converter.ConversionException {
return realConverter.convertToModel(value, locale);
@@ -64,6 +66,7 @@ public class ReverseConverter<PRESENTATION, MODEL> implements
*
* @see com.vaadin.data.util.converter.Converter#getSourceType()
*/
+ @Override
public Class<MODEL> getModelType() {
return realConverter.getPresentationType();
}
@@ -73,6 +76,7 @@ public class ReverseConverter<PRESENTATION, MODEL> implements
*
* @see com.vaadin.data.util.converter.Converter#getTargetType()
*/
+ @Override
public Class<PRESENTATION> getPresentationType() {
return realConverter.getModelType();
}
diff --git a/src/com/vaadin/data/util/converter/StringToBooleanConverter.java b/src/com/vaadin/data/util/converter/StringToBooleanConverter.java
index 96a3a3d071..999f575dc4 100644
--- a/src/com/vaadin/data/util/converter/StringToBooleanConverter.java
+++ b/src/com/vaadin/data/util/converter/StringToBooleanConverter.java
@@ -27,6 +27,7 @@ public class StringToBooleanConverter implements Converter<String, Boolean> {
* com.vaadin.data.util.converter.Converter#convertToModel(java.lang.Object,
* java.util.Locale)
*/
+ @Override
public Boolean convertToModel(String value, Locale locale)
throws ConversionException {
if (value == null) {
@@ -71,6 +72,7 @@ public class StringToBooleanConverter implements Converter<String, Boolean> {
* com.vaadin.data.util.converter.Converter#convertToPresentation(java.lang
* .Object, java.util.Locale)
*/
+ @Override
public String convertToPresentation(Boolean value, Locale locale)
throws ConversionException {
if (value == null) {
@@ -88,6 +90,7 @@ public class StringToBooleanConverter implements Converter<String, Boolean> {
*
* @see com.vaadin.data.util.converter.Converter#getModelType()
*/
+ @Override
public Class<Boolean> getModelType() {
return Boolean.class;
}
@@ -97,6 +100,7 @@ public class StringToBooleanConverter implements Converter<String, Boolean> {
*
* @see com.vaadin.data.util.converter.Converter#getPresentationType()
*/
+ @Override
public Class<String> getPresentationType() {
return String.class;
}
diff --git a/src/com/vaadin/data/util/converter/StringToDateConverter.java b/src/com/vaadin/data/util/converter/StringToDateConverter.java
index 6f3c2e47f6..487b02b2aa 100644
--- a/src/com/vaadin/data/util/converter/StringToDateConverter.java
+++ b/src/com/vaadin/data/util/converter/StringToDateConverter.java
@@ -52,6 +52,7 @@ public class StringToDateConverter implements Converter<String, Date> {
* com.vaadin.data.util.converter.Converter#convertToModel(java.lang.Object,
* java.util.Locale)
*/
+ @Override
public Date convertToModel(String value, Locale locale)
throws com.vaadin.data.util.converter.Converter.ConversionException {
if (value == null) {
@@ -78,6 +79,7 @@ public class StringToDateConverter implements Converter<String, Date> {
* com.vaadin.data.util.converter.Converter#convertToPresentation(java.lang
* .Object, java.util.Locale)
*/
+ @Override
public String convertToPresentation(Date value, Locale locale)
throws com.vaadin.data.util.converter.Converter.ConversionException {
if (value == null) {
@@ -92,6 +94,7 @@ public class StringToDateConverter implements Converter<String, Date> {
*
* @see com.vaadin.data.util.converter.Converter#getModelType()
*/
+ @Override
public Class<Date> getModelType() {
return Date.class;
}
@@ -101,6 +104,7 @@ public class StringToDateConverter implements Converter<String, Date> {
*
* @see com.vaadin.data.util.converter.Converter#getPresentationType()
*/
+ @Override
public Class<String> getPresentationType() {
return String.class;
}
diff --git a/src/com/vaadin/data/util/converter/StringToDoubleConverter.java b/src/com/vaadin/data/util/converter/StringToDoubleConverter.java
index 60a38f4127..251f91855b 100644
--- a/src/com/vaadin/data/util/converter/StringToDoubleConverter.java
+++ b/src/com/vaadin/data/util/converter/StringToDoubleConverter.java
@@ -49,6 +49,7 @@ public class StringToDoubleConverter implements Converter<String, Double> {
* com.vaadin.data.util.converter.Converter#convertToModel(java.lang.Object,
* java.util.Locale)
*/
+ @Override
public Double convertToModel(String value, Locale locale)
throws ConversionException {
if (value == null) {
@@ -74,6 +75,7 @@ public class StringToDoubleConverter implements Converter<String, Double> {
* com.vaadin.data.util.converter.Converter#convertToPresentation(java.lang
* .Object, java.util.Locale)
*/
+ @Override
public String convertToPresentation(Double value, Locale locale)
throws ConversionException {
if (value == null) {
@@ -88,6 +90,7 @@ public class StringToDoubleConverter implements Converter<String, Double> {
*
* @see com.vaadin.data.util.converter.Converter#getModelType()
*/
+ @Override
public Class<Double> getModelType() {
return Double.class;
}
@@ -97,6 +100,7 @@ public class StringToDoubleConverter implements Converter<String, Double> {
*
* @see com.vaadin.data.util.converter.Converter#getPresentationType()
*/
+ @Override
public Class<String> getPresentationType() {
return String.class;
}
diff --git a/src/com/vaadin/data/util/converter/StringToIntegerConverter.java b/src/com/vaadin/data/util/converter/StringToIntegerConverter.java
index e55feec3b6..950f01c6ab 100644
--- a/src/com/vaadin/data/util/converter/StringToIntegerConverter.java
+++ b/src/com/vaadin/data/util/converter/StringToIntegerConverter.java
@@ -39,6 +39,7 @@ public class StringToIntegerConverter implements Converter<String, Integer> {
return NumberFormat.getIntegerInstance(locale);
}
+ @Override
public Integer convertToModel(String value, Locale locale)
throws ConversionException {
if (value == null) {
@@ -64,6 +65,7 @@ public class StringToIntegerConverter implements Converter<String, Integer> {
return parsedValue.intValue();
}
+ @Override
public String convertToPresentation(Integer value, Locale locale)
throws ConversionException {
if (value == null) {
@@ -73,10 +75,12 @@ public class StringToIntegerConverter implements Converter<String, Integer> {
return getFormat(locale).format(value);
}
+ @Override
public Class<Integer> getModelType() {
return Integer.class;
}
+ @Override
public Class<String> getPresentationType() {
return String.class;
}
diff --git a/src/com/vaadin/data/util/converter/StringToNumberConverter.java b/src/com/vaadin/data/util/converter/StringToNumberConverter.java
index d1816007e7..42699a326a 100644
--- a/src/com/vaadin/data/util/converter/StringToNumberConverter.java
+++ b/src/com/vaadin/data/util/converter/StringToNumberConverter.java
@@ -45,6 +45,7 @@ public class StringToNumberConverter implements Converter<String, Number> {
* com.vaadin.data.util.converter.Converter#convertToModel(java.lang.Object,
* java.util.Locale)
*/
+ @Override
public Number convertToModel(String value, Locale locale)
throws ConversionException {
if (value == null) {
@@ -77,6 +78,7 @@ public class StringToNumberConverter implements Converter<String, Number> {
* com.vaadin.data.util.converter.Converter#convertToPresentation(java.lang
* .Object, java.util.Locale)
*/
+ @Override
public String convertToPresentation(Number value, Locale locale)
throws ConversionException {
if (value == null) {
@@ -91,6 +93,7 @@ public class StringToNumberConverter implements Converter<String, Number> {
*
* @see com.vaadin.data.util.converter.Converter#getModelType()
*/
+ @Override
public Class<Number> getModelType() {
return Number.class;
}
@@ -100,6 +103,7 @@ public class StringToNumberConverter implements Converter<String, Number> {
*
* @see com.vaadin.data.util.converter.Converter#getPresentationType()
*/
+ @Override
public Class<String> getPresentationType() {
return String.class;
}