1 package com.fasterxml.jackson.databind.jsonFormatVisitors; 2 3 import java.util.Set; 4 5 public interface JsonValueFormatVisitor { 6 /** 7 * Method called to indicate configured format for value type being visited. 8 */ format(JsonValueFormat format)9 void format(JsonValueFormat format); 10 11 /** 12 * Method called to indicate enumerated (String) values type being visited 13 * can take as values. 14 */ enumTypes(Set<String> enums)15 void enumTypes(Set<String> enums); 16 17 /** 18 * Default "empty" implementation, useful as the base to start on; 19 * especially as it is guaranteed to implement all the method 20 * of the interface, even if new methods are getting added. 21 */ 22 public static class Base implements JsonValueFormatVisitor { 23 @Override format(JsonValueFormat format)24 public void format(JsonValueFormat format) { } 25 @Override enumTypes(Set<String> enums)26 public void enumTypes(Set<String> enums) { } 27 } 28 } 29