Code example for SimpleTypeConverter

Methods: registerCustomEditor

0
    protected final Map<String, String> parameterKeys = createLinkedHashMap();
    protected final ParserRequestContext requestContext;
 
    public AbstractValueParser(ParserRequestContext requestContext) {
        this.requestContext = requestContext;
        this.converter = new SimpleTypeConverter();
        this.converter.registerCustomEditor(String.class, new StringFileItemEditor());
 
        if (requestContext.getPropertyEditorRegistrar() != null) {
            requestContext.getPropertyEditorRegistrar().registerCustomEditors(converter);
        } 
    } 
 
    protected abstract Logger getLogger(); 
 
    public TypeConverter getTypeConverter() {
        return converter;
    } 
 
    // ============================================================= 
Connect your IDE to all the code out there  Get Codota for Java