View Javadoc
1   package org.pojomatic.internal;
2   
3   import org.pojomatic.PropertyElement;
4   import org.pojomatic.formatter.EnhancedPojoFormatter;
5   import org.pojomatic.formatter.PojoFormatter;
6   
7   @Deprecated
8   public class EnhancedPojoFormatterWrapper implements EnhancedPojoFormatter {
9     private final PojoFormatter delegate;
10  
11    public EnhancedPojoFormatterWrapper(PojoFormatter delegate) {
12      this.delegate = delegate;
13    }
14  
15    @Override
16    public String getToStringPrefix(Class<?> pojoClass) {
17      return delegate.getToStringPrefix(pojoClass);
18    }
19  
20    @Override
21    public String getToStringSuffix(Class<?> pojoClass) {
22      return delegate.getToStringSuffix(pojoClass);
23    }
24  
25    @Override
26    public String getPropertyPrefix(PropertyElement property) {
27      return delegate.getPropertyPrefix(property);
28    }
29  
30    @Override
31    public String getPropertySuffix(PropertyElement property) {
32      return delegate.getPropertySuffix(property);
33    }
34  
35    @Override
36    public void appendToStringPrefix(StringBuilder builder, Class<?> pojoClass) {
37      builder.append(getToStringPrefix(pojoClass));
38    }
39  
40    @Override
41    public void appendToStringSuffix(StringBuilder builder, Class<?> pojoClass) {
42      builder.append(getToStringSuffix(pojoClass));
43    }
44  
45    @Override
46    public void appendPropertyPrefix(StringBuilder builder, PropertyElement property) {
47      builder.append(getPropertyPrefix(property));
48    }
49  
50    @Override
51    public void appendPropertySuffix(StringBuilder builder, PropertyElement property) {
52      builder.append(getPropertySuffix(property));
53    }
54  
55  
56  }