1 5 package com.tc.config.schema.test; 6 7 import com.tc.config.schema.builder.RootConfigBuilder; 8 9 13 public class RootConfigBuilderImpl extends BaseConfigBuilder implements RootConfigBuilder { 14 15 public RootConfigBuilderImpl(Class clazz, String field) { 16 this(); 17 setFieldName(clazz.getName() + "." + field); 18 } 19 20 public RootConfigBuilderImpl() { 21 super(4, ALL_PROPERTIES); 22 } 23 24 public void setFieldName(String name) { 25 setProperty("field-name", name); 26 } 27 28 public void setRootName(String name) { 29 setProperty("root-name", name); 30 } 31 32 private static final String [] ALL_PROPERTIES = new String [] { "field-name", "root-name" }; 33 34 public String toString() { 35 return elements(ALL_PROPERTIES); 36 } 37 38 } 39 | Popular Tags |