1 4 package com.tc.config.schema.test; 5 6 10 public class ParameterExpansionConfigBuilder extends BaseConfigBuilder { 11 12 private final String matchType; 13 private final String expandParameters; 14 private final String query; 15 16 public static final String MATCH_TYPE_EXACT = "exact"; 17 public static final String MATCH_TYPE_REGEX = "regex"; 18 19 public ParameterExpansionConfigBuilder(String matchType, String expandParameters, String query) { 20 super(5, new String [0]); 21 22 this.matchType = matchType; 23 this.expandParameters = expandParameters; 24 this.query = query; 25 } 26 27 public String toString() { 28 String out = indent() + "<parameter-expansion"; 29 if (this.matchType != null) out += " match-type=\"" + this.matchType + "\""; 30 if (this.expandParameters != null) out += " expand-parameters-in-positions=\"" + this.expandParameters+ "\""; 31 out += ">"; 32 if (this.query != null) out += this.query; 33 out += "</parameter-expansion>\n"; 34 35 return out; 36 } 37 38 } 39 | Popular Tags |