All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bld.commons.utils.formatter.UpperLowerAnnotationFormatterFactory Maven / Gradle / Ivy

There is a newer version: 2.0.6
Show newest version
package com.bld.commons.utils.formatter;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import org.springframework.format.AnnotationFormatterFactory;
import org.springframework.format.Parser;
import org.springframework.format.Printer;

import com.bld.commons.utils.json.annotations.UpperLowerCase;

public final class UpperLowerAnnotationFormatterFactory implements AnnotationFormatterFactory {

	private final static Set> FIELD_TYPES=new HashSet<>(Arrays.asList(String.class));
	
	
	@Override
	public Set> getFieldTypes() {
		return FIELD_TYPES;
	}

	@Override
	public Printer getPrinter(UpperLowerCase annotation, Class fieldType) {
		return new UpperLowerFormatter(annotation);
	}

	@Override
	public Parser getParser(UpperLowerCase annotation, Class fieldType) {
		return new UpperLowerFormatter(annotation);
	}

	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy