1 4 package com.tc.object.config.schema; 5 6 import com.tc.util.Assert; 7 import com.tc.util.stringification.OurStringBuilder; 8 9 12 public class Root { 13 14 private final String rootName; 15 private final String fieldName; 16 17 public Root(String rootName, String fieldName) { 18 Assert.assertNotBlank(fieldName); 19 20 this.rootName = rootName; 21 this.fieldName = fieldName; 22 } 23 24 public String rootName() { 25 return this.rootName; 26 } 27 28 public String fieldName() { 29 return this.fieldName; 30 } 31 32 public String toString() { 33 return new OurStringBuilder(this, OurStringBuilder.COMPACT_STYLE).append("name", this.rootName) 34 .append("field", this.fieldName).toString(); 35 } 36 } 37 | Popular Tags |