package org.openanzo.jet.exceptions.templates;
import org.openanzo.jet.exceptions.PropertiesDefinitionParser;
import org.openanzo.jet.exceptions.PropertiesDefinitionParser.Description;
import org.openanzo.jet.exceptions.PropertiesDefinitionParser.Example;
import org.openanzo.jet.exceptions.PropertiesDefinitionParser.Property;
import org.openanzo.jet.exceptions.PropertiesDefinitionParser.Tag;
/*******************************************************************************
* Copyright (c) 2004, 2007-2008 IBM Corporation and Cambridge Semantics Incorporated.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Generated via javajet
*
* Contributors:
* IBM Corporation - initial API and implementation
* Cambridge Semantics Incorporated - Fork to Anzo
*******************************************************************************/
@SuppressWarnings("all")
public class PropertiesDefinitionsTemplate
{
protected static String nl;
public static synchronized PropertiesDefinitionsTemplate create(String lineSeparator)
{
nl = lineSeparator;
PropertiesDefinitionsTemplate result = new PropertiesDefinitionsTemplate();
nl = null;
return result;
}
public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
protected final String TEXT_1 = "";
protected final String TEXT_2 = NL + "/*******************************************************************************" + NL + " * Copyright (c) 2007-2008 Cambridge Semantics Incorporated." + NL + " * All rights reserved. This program and the accompanying materials" + NL + " * are made available under the terms of the Eclipse Public License v1.0" + NL + " * which accompanies this distribution, and is available at" + NL + " * http://www.eclipse.org/legal/epl-v10.html" + NL + " * " + NL + " * File: ";
protected final String TEXT_3 = "Source";
protected final String TEXT_4 = NL + " * Created by: Generated Source from org.openanzo.rdf.utils.properties.jet" + NL + " * Created on: Generated Source from org.openanzo.rdf.utils.properties.jet" + NL + " * Revision:\t";
protected final String TEXT_5 = "Id";
protected final String TEXT_6 = NL + " * " + NL + " * Contributors:" + NL + " * Cambridge Semantics Incorporated - initial API and implementation" + NL + " *******************************************************************************/" + NL + "package ";
protected final String TEXT_7 = ";" + NL + "import java.util.Properties;" + NL + "/**" + NL + " * ";
protected final String TEXT_8 = " ";
protected final String TEXT_9 = NL + " *\t@author Generated Source from org.openanzo.rdf.utils.properties.jet" + NL + " */" + NL + " " + NL + " public class ";
protected final String TEXT_10 = "Properties{" + NL + " \t";
protected final String TEXT_11 = NL + "\t/**" + NL + "\t * Key for property \"";
protected final String TEXT_12 = ".";
protected final String TEXT_13 = "\"";
protected final String TEXT_14 = NL + "\t * ";
protected final String TEXT_15 = NL + "\t * <li><b>Server:</b>";
protected final String TEXT_16 = "</li>";
protected final String TEXT_17 = NL + "\t * <li><b>Client:</b>";
protected final String TEXT_18 = "</li>";
protected final String TEXT_19 = NL + "\t * <li><b>Embedded:</b>";
protected final String TEXT_20 = "</li>";
protected final String TEXT_21 = NL + "\t *";
protected final String TEXT_22 = NL + "\t * Examples:";
protected final String TEXT_23 = NL + "\t * ";
protected final String TEXT_24 = NL + "\t * <li><b>Server:</b>";
protected final String TEXT_25 = "</li>";
protected final String TEXT_26 = NL + "\t * <li><b>Client:</b>";
protected final String TEXT_27 = "</li>";
protected final String TEXT_28 = NL + "\t * <li><b>Embedded:</b>";
protected final String TEXT_29 = "</li>";
protected final String TEXT_30 = NL + "\t * ";
protected final String TEXT_31 = " ";
protected final String TEXT_32 = " ";
protected final String TEXT_33 = NL + "\t */" + NL + "\tpublic static final String\t";
protected final String TEXT_34 = "\t= \"";
protected final String TEXT_35 = ".";
protected final String TEXT_36 = "\";" + NL + " \t";
protected final String TEXT_37 = NL + " \t/**" + NL + "\t * Get {@link #";
protected final String TEXT_38 = "} property from properties" + NL + "\t * " + NL + "\t * @param properties" + NL + "\t * containing configuration data" + NL + "\t * ";
protected final String TEXT_39 = "@param defaultValue defaultValue for ";
protected final String TEXT_40 = NL + "\t * @return value of {@link #";
protected final String TEXT_41 = "}";
protected final String TEXT_42 = ",fallback to {@link ";
protected final String TEXT_43 = "} if available ";
protected final String TEXT_44 = ",or \"";
protected final String TEXT_45 = "\" ";
protected final String TEXT_46 = "or defaultValue";
protected final String TEXT_47 = " if not present" + NL + "\t */" + NL + "\tstatic public String get";
protected final String TEXT_48 = "(Properties properties";
protected final String TEXT_49 = ",String defaultValue";
protected final String TEXT_50 = ") {" + NL + "\t\treturn properties.getProperty(";
protected final String TEXT_51 = ",properties.getProperty(";
protected final String TEXT_52 = ",";
protected final String TEXT_53 = "\"";
protected final String TEXT_54 = "\"";
protected final String TEXT_55 = ",defaultValue";
protected final String TEXT_56 = ")";
protected final String TEXT_57 = ");" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * Set {@link #";
protected final String TEXT_58 = "} property to ";
protected final String TEXT_59 = " in properties" + NL + "\t * " + NL + "\t * @param properties" + NL + "\t * containing configuration data" + NL + "\t * @param ";
protected final String TEXT_60 = NL + "\t * value for ";
protected final String TEXT_61 = NL + "\t */" + NL + "\tstatic public void set";
protected final String TEXT_62 = "(Properties properties, String ";
protected final String TEXT_63 = ") {" + NL + "\t\tif(";
protected final String TEXT_64 = "==null){" + NL + "\t\t\tproperties.remove(";
protected final String TEXT_65 = ");" + NL + "\t\t}else{" + NL + "\t\t\tproperties.setProperty(";
protected final String TEXT_66 = ", ";
protected final String TEXT_67 = ");" + NL + "\t\t}" + NL + "\t}" + NL + " \t";
protected final String TEXT_68 = NL + " \t/**" + NL + "\t * Get {@link #";
protected final String TEXT_69 = "} property from properties" + NL + "\t * " + NL + "\t * @param properties" + NL + "\t * containing configuration data" + NL + "\t * ";
protected final String TEXT_70 = "@param defaultValue defaultValue for ";
protected final String TEXT_71 = NL + "\t * @return value of {@link #";
protected final String TEXT_72 = "}";
protected final String TEXT_73 = ",fallback to {@link ";
protected final String TEXT_74 = "} if available ";
protected final String TEXT_75 = ",or \"";
protected final String TEXT_76 = "\" ";
protected final String TEXT_77 = "or defaultValue";
protected final String TEXT_78 = " if not present" + NL + "\t * @throws org.openanzo.exceptions.AnzoException if there is an exception decrypting value" + NL + "\t */" + NL + "\tstatic public String get";
protected final String TEXT_79 = "(Properties properties";
protected final String TEXT_80 = ",String defaultValue";
protected final String TEXT_81 = ") throws org.openanzo.exceptions.AnzoException{" + NL + "\t\ttry{" + NL + "\t\tString result= properties.getProperty(";
protected final String TEXT_82 = NL + "\t\t";
protected final String TEXT_83 = ",properties.getProperty(";
protected final String TEXT_84 = ")";
protected final String TEXT_85 = ");" + NL + "\t\t";
protected final String TEXT_86 = NL + "\t\tif(result==null){" + NL + "\t\t\t";
protected final String TEXT_87 = "result=";
protected final String TEXT_88 = "\"";
protected final String TEXT_89 = "\"";
protected final String TEXT_90 = ";";
protected final String TEXT_91 = "result=defaultValue;";
protected final String TEXT_92 = NL + "\t\t}else{" + NL + "\t\t\tif(result.startsWith(\"encrypted:\")){" + NL + "\t\t\t\tresult=result.substring(\"encrypted:\".length());" + NL + "\t\t\t\tif(result.length()>0){" + NL + "\t\t\t\t\tresult=org.openanzo.exceptions.EncryptionUtil.decryptBase64(result);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\t";
protected final String TEXT_93 = NL + "\t\t\tif(result!=null){" + NL + "\t\t\t\tif(result.startsWith(\"encrypted:\")){" + NL + "\t\t\t\t\tresult=result.substring(\"encrypted:\".length());" + NL + "\t\t\t\t\tif(result.length()>0){" + NL + "\t\t\t\t\t\tresult=org.openanzo.exceptions.EncryptionUtil.decryptBase64(result);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t";
protected final String TEXT_94 = NL + "\t\treturn result;" + NL + "\t\t}catch(Exception e){" + NL + "\t\t\t throw new org.openanzo.exceptions.AnzoException( org.openanzo.exceptions.ExceptionConstants.IO.PROPERTIES_ERROR, e);" + NL + "\t\t}" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * Set {@link #";
protected final String TEXT_95 = "} property to ";
protected final String TEXT_96 = " in properties" + NL + "\t * " + NL + "\t * @param properties" + NL + "\t * containing configuration data" + NL + "\t * @param ";
protected final String TEXT_97 = NL + "\t * value for ";
protected final String TEXT_98 = NL + "\t * @throws org.openanzo.exceptions.AnzoException if there is an exception encrypting value" + NL + "\t */" + NL + "\tstatic public void set";
protected final String TEXT_99 = "(Properties properties, String ";
protected final String TEXT_100 = ") throws org.openanzo.exceptions.AnzoException{" + NL + "\t\ttry{if(";
protected final String TEXT_101 = "==null){" + NL + "\t\t\tproperties.remove(";
protected final String TEXT_102 = ");" + NL + "\t\t}else{" + NL + "\t\t\t";
protected final String TEXT_103 = "=org.openanzo.exceptions.EncryptionUtil.encryptBase64(";
protected final String TEXT_104 = ");" + NL + "\t\t\tproperties.setProperty(";
protected final String TEXT_105 = ", \"encrypted:\"+";
protected final String TEXT_106 = ");" + NL + "\t\t}" + NL + "\t\t}catch(Exception e){" + NL + "\t\t\t throw new org.openanzo.exceptions.AnzoException( org.openanzo.exceptions.ExceptionConstants.IO.PROPERTIES_ERROR, e);" + NL + "\t\t}" + NL + "\t}" + NL + " \t";
protected final String TEXT_107 = NL + " \t/**" + NL + "\t * Get {@link #";
protected final String TEXT_108 = "} property from properties" + NL + "\t * " + NL + "\t * @param properties" + NL + "\t * containing configuration data" + NL + "\t * ";
protected final String TEXT_109 = "@param defaultValue defaultValue for ";
protected final String TEXT_110 = NL + "\t * @return value of {@link #";
protected final String TEXT_111 = "}";
protected final String TEXT_112 = ",fallback to {@link ";
protected final String TEXT_113 = "} if available ";
protected final String TEXT_114 = ",or \"";
protected final String TEXT_115 = "\" ";
protected final String TEXT_116 = "or defaultValue";
protected final String TEXT_117 = ", or false ";
protected final String TEXT_118 = " if not present" + NL + "\t */" + NL + "\tstatic public boolean get";
protected final String TEXT_119 = "(Properties properties";
protected final String TEXT_120 = ",boolean defaultValue";
protected final String TEXT_121 = ") {" + NL + "\t\treturn Boolean.valueOf(properties.getProperty(";
protected final String TEXT_122 = ",properties.getProperty(";
protected final String TEXT_123 = ",\"\"+";
protected final String TEXT_124 = "\"";
protected final String TEXT_125 = "\"";
protected final String TEXT_126 = ",\"\"+defaultValue";
protected final String TEXT_127 = ",\"false\"";
protected final String TEXT_128 = ")";
protected final String TEXT_129 = ")";
protected final String TEXT_130 = ").booleanValue();\t\t" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Set {@link #";
protected final String TEXT_131 = "} property to ";
protected final String TEXT_132 = " in properties" + NL + "\t * " + NL + "\t * @param properties" + NL + "\t * containing configuration data" + NL + "\t * @param ";
protected final String TEXT_133 = NL + "\t * value for ";
protected final String TEXT_134 = NL + "\t */" + NL + "\tstatic public void set";
protected final String TEXT_135 = "(Properties properties, boolean ";
protected final String TEXT_136 = ") {" + NL + "\t\tproperties.setProperty(";
protected final String TEXT_137 = ", Boolean.toString(";
protected final String TEXT_138 = "));" + NL + "\t}" + NL + " \t";
protected final String TEXT_139 = NL + " \t/**" + NL + "\t * Get {@link #";
protected final String TEXT_140 = "} property from properties" + NL + "\t * " + NL + "\t * @param properties" + NL + "\t * containing configuration data" + NL + "\t * ";
protected final String TEXT_141 = "@param defaultValue defaultValue for ";
protected final String TEXT_142 = NL + "\t * @return value of {@link #";
protected final String TEXT_143 = "}";
protected final String TEXT_144 = ",fallback to {@link ";
protected final String TEXT_145 = "} if available ";
protected final String TEXT_146 = ",or \"";
protected final String TEXT_147 = "\" ";
protected final String TEXT_148 = "or defaultValue";
protected final String TEXT_149 = " if not present" + NL + "\t */" + NL + "\tstatic public int get";
protected final String TEXT_150 = "(Properties properties";
protected final String TEXT_151 = ",int defaultValue";
protected final String TEXT_152 = ") {" + NL + "\t\tint value= Integer.parseInt(properties.getProperty(";
protected final String TEXT_153 = ",properties.getProperty(";
protected final String TEXT_154 = ",\"\"+";
protected final String TEXT_155 = "\"";
protected final String TEXT_156 = "\"";
protected final String TEXT_157 = ",\"\"+defaultValue";
protected final String TEXT_158 = ")";
protected final String TEXT_159 = ")";
protected final String TEXT_160 = ");" + NL + "\t\t";
protected final String TEXT_161 = NL + "\t\tif(value <= ";
protected final String TEXT_162 = ")" + NL + "\t\t\tthrow new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,\"";
protected final String TEXT_163 = "\",\"";
protected final String TEXT_164 = "\");";
protected final String TEXT_165 = NL + "\t\tif(value >= ";
protected final String TEXT_166 = ")" + NL + "\t\t\tthrow new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_LESS_THAN,\"";
protected final String TEXT_167 = "\",\"";
protected final String TEXT_168 = "\");";
protected final String TEXT_169 = NL + "\t\treturn value;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Set {@link #";
protected final String TEXT_170 = "} property to ";
protected final String TEXT_171 = " in properties" + NL + "\t * " + NL + "\t * @param properties" + NL + "\t * containing configuration data" + NL + "\t * @param ";
protected final String TEXT_172 = NL + "\t * value for ";
protected final String TEXT_173 = NL + "\t */" + NL + "\tstatic public void set";
protected final String TEXT_174 = "(Properties properties, int ";
protected final String TEXT_175 = ") {" + NL + "\t\t";
protected final String TEXT_176 = NL + "\t\tif(";
protected final String TEXT_177 = " <= ";
protected final String TEXT_178 = ")" + NL + "\t\t\tthrow new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,\"";
protected final String TEXT_179 = "\",\"";
protected final String TEXT_180 = "\");";
protected final String TEXT_181 = NL + "\t\tif(";
protected final String TEXT_182 = " >= ";
protected final String TEXT_183 = ")" + NL + "\t\t\tthrow new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_LESS_THAN,\"";
protected final String TEXT_184 = "\",\"";
protected final String TEXT_185 = "\");";
protected final String TEXT_186 = NL + "\t\tproperties.setProperty(";
protected final String TEXT_187 = ", Integer.toString(";
protected final String TEXT_188 = "));" + NL + "\t}" + NL + " \t";
protected final String TEXT_189 = NL + " \t/**" + NL + "\t * Get {@link #";
protected final String TEXT_190 = "} property from properties" + NL + "\t * " + NL + "\t * @param properties" + NL + "\t * containing configuration data" + NL + "\t * ";
protected final String TEXT_191 = "@param defaultValue defaultValue for ";
protected final String TEXT_192 = NL + "\t * @return value of {@link #";
protected final String TEXT_193 = "}";
protected final String TEXT_194 = ",fallback to {@link ";
protected final String TEXT_195 = "} if available ";
protected final String TEXT_196 = ",or \"";
protected final String TEXT_197 = "\" ";
protected final String TEXT_198 = "or defaultValue";
protected final String TEXT_199 = " if not present" + NL + "\t */" + NL + "\tstatic public long get";
protected final String TEXT_200 = "(Properties properties";
protected final String TEXT_201 = ",long defaultValue";
protected final String TEXT_202 = ") {" + NL + "\t\tlong value= Long.parseLong(properties.getProperty(";
protected final String TEXT_203 = ",properties.getProperty(";
protected final String TEXT_204 = ",\"\"+ ";
protected final String TEXT_205 = "\"";
protected final String TEXT_206 = "\"";
protected final String TEXT_207 = ", \"\"+defaultValue";
protected final String TEXT_208 = ")";
protected final String TEXT_209 = ")";
protected final String TEXT_210 = ");" + NL + "\t\t";
protected final String TEXT_211 = NL + "\t\tif(value <= ";
protected final String TEXT_212 = ")" + NL + "\t\t\tthrow new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,\"";
protected final String TEXT_213 = "\",\"";
protected final String TEXT_214 = "\");";
protected final String TEXT_215 = NL + "\t\tif(value >= ";
protected final String TEXT_216 = ")" + NL + "\t\t\tthrow new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_LESS_THAN,\"";
protected final String TEXT_217 = "\",\"";
protected final String TEXT_218 = "\");";
protected final String TEXT_219 = NL + "\t\treturn value;\t\t" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Set {@link #";
protected final String TEXT_220 = "} property to ";
protected final String TEXT_221 = " in properties" + NL + "\t * " + NL + "\t * @param properties" + NL + "\t * containing configuration data" + NL + "\t * @param ";
protected final String TEXT_222 = NL + "\t * value for ";
protected final String TEXT_223 = NL + "\t */" + NL + "\tstatic public void set";
protected final String TEXT_224 = "(Properties properties, long ";
protected final String TEXT_225 = ") {" + NL + "\t\t";
protected final String TEXT_226 = NL + "\t\tif(";
protected final String TEXT_227 = " <= ";
protected final String TEXT_228 = ")" + NL + "\t\t\tthrow new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_GREATER_THAN,\"";
protected final String TEXT_229 = "\",\"";
protected final String TEXT_230 = "\");";
protected final String TEXT_231 = NL + "\t\tif(";
protected final String TEXT_232 = " >= ";
protected final String TEXT_233 = ")" + NL + "\t\t\tthrow new org.openanzo.exceptions.AnzoRuntimeException(org.openanzo.exceptions.ExceptionConstants.OSGI.PARAM_LESS_THAN,\"";
protected final String TEXT_234 = "\",\"";
protected final String TEXT_235 = "\");";
protected final String TEXT_236 = NL + "\t\tproperties.setProperty(";
protected final String TEXT_237 = ", Long.toString(";
protected final String TEXT_238 = "));" + NL + "\t}" + NL + " \t";
protected final String TEXT_239 = NL + " \t";
protected final String TEXT_240 = NL + " }" + NL + " \t";
/**
* Generate source code
* @param argument source for template
* @return Return generated source
*/
public String generate(Object argument)
{
final StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(TEXT_1);
PropertiesDefinitionParser.PropertyGroup group = (PropertiesDefinitionParser.PropertyGroup)argument;
stringBuffer.append(TEXT_2);
stringBuffer.append("$".toString());
stringBuffer.append(TEXT_3);
stringBuffer.append("$".toString());
stringBuffer.append(TEXT_4);
stringBuffer.append("$".toString());
stringBuffer.append(TEXT_5);
stringBuffer.append("$".toString());
stringBuffer.append(TEXT_6);
stringBuffer.append(group.getPackageName() );
stringBuffer.append(TEXT_7);
if(group.getDescription()!=null){
stringBuffer.append(TEXT_8);
stringBuffer.append(group.getDescription().getValue());
}
stringBuffer.append(TEXT_9);
stringBuffer.append(group.getClassName());
stringBuffer.append(TEXT_10);
for (Property property:group.getProperties()) {
stringBuffer.append(TEXT_11);
stringBuffer.append(group.getPrefix());
stringBuffer.append(TEXT_12);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_13);
if (property.getGeneralDescription()!=null){ for(Description description:property.getGeneralDescription()){
stringBuffer.append(TEXT_14);
stringBuffer.append(description.getValue());
}};if (property.getServerDescription()!=null){
stringBuffer.append(TEXT_15);
stringBuffer.append(property.getServerDescription().getValue());
stringBuffer.append(TEXT_16);
};if (property.getClientDescription()!=null){
stringBuffer.append(TEXT_17);
stringBuffer.append(property.getClientDescription().getValue());
stringBuffer.append(TEXT_18);
};if (property.getEmbeddedDescription()!=null){
stringBuffer.append(TEXT_19);
stringBuffer.append(property.getEmbeddedDescription().getValue());
stringBuffer.append(TEXT_20);
};
stringBuffer.append(TEXT_21);
if(property.hasExample()){
stringBuffer.append(TEXT_22);
if (property.getGeneralExample()!=null){ for(Example example:property.getGeneralExample()){
stringBuffer.append(TEXT_23);
stringBuffer.append(example.getValue());
}};if (property.getServerExample()!=null){
stringBuffer.append(TEXT_24);
stringBuffer.append(property.getServerExample().getValue());
stringBuffer.append(TEXT_25);
};if (property.getClientExample()!=null){
stringBuffer.append(TEXT_26);
stringBuffer.append(property.getClientExample().getValue());
stringBuffer.append(TEXT_27);
};if (property.getEmbeddedExample()!=null){
stringBuffer.append(TEXT_28);
stringBuffer.append(property.getEmbeddedExample().getValue());
stringBuffer.append(TEXT_29);
};
}
for(Tag tag:property.getTags()){
stringBuffer.append(TEXT_30);
stringBuffer.append(tag.getType());
stringBuffer.append(TEXT_31);
stringBuffer.append(tag.getValue());
stringBuffer.append(TEXT_32);
}
stringBuffer.append(TEXT_33);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_34);
stringBuffer.append(group.getPrefix());
stringBuffer.append(TEXT_35);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_36);
}for (Property property:group.getProperties()) { if(property.getType().equals(PropertiesDefinitionParser.PropType.STRING)){
stringBuffer.append(TEXT_37);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_38);
if(property.getPassDefault()){
stringBuffer.append(TEXT_39);
stringBuffer.append(property.getName());
}
stringBuffer.append(TEXT_40);
stringBuffer.append(property.getKey());
stringBuffer.append(TEXT_41);
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_42);
stringBuffer.append(property.getParentPropertyLink());
stringBuffer.append(TEXT_43);
};if(property.getDefaultValue()!=null){
stringBuffer.append(TEXT_44);
stringBuffer.append(property.getDefaultValue());
stringBuffer.append(TEXT_45);
}else if(property.getPassDefault()){
stringBuffer.append(TEXT_46);
}
stringBuffer.append(TEXT_47);
stringBuffer.append(PropertiesDefinitionParser.capFirstLetter(property.getName()));
stringBuffer.append(TEXT_48);
if(property.getPassDefault()){
stringBuffer.append(TEXT_49);
}
stringBuffer.append(TEXT_50);
stringBuffer.append(property.getKey() );
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_51);
stringBuffer.append(property.getParentProperty());
}
if(property.getDefaultValue()!=null){
stringBuffer.append(TEXT_52);
if(property.getQuoteDefault()){
stringBuffer.append(TEXT_53);
}
stringBuffer.append(property.getDefaultValue());
if(property.getQuoteDefault()){
stringBuffer.append(TEXT_54);
}
}else if(property.getPassDefault()){
stringBuffer.append(TEXT_55);
}
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_56);
}
stringBuffer.append(TEXT_57);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_58);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_59);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_60);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_61);
stringBuffer.append(PropertiesDefinitionParser.capFirstLetter(property.getName()));
stringBuffer.append(TEXT_62);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_63);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()));
stringBuffer.append(TEXT_64);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_65);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_66);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()));
stringBuffer.append(TEXT_67);
}else if(property.getType().equals(PropertiesDefinitionParser.PropType.ENCRYPTED)){
stringBuffer.append(TEXT_68);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_69);
if(property.getPassDefault()){
stringBuffer.append(TEXT_70);
stringBuffer.append(property.getName());
}
stringBuffer.append(TEXT_71);
stringBuffer.append(property.getKey());
stringBuffer.append(TEXT_72);
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_73);
stringBuffer.append(property.getParentPropertyLink());
stringBuffer.append(TEXT_74);
};if(property.getDefaultValue()!=null){
stringBuffer.append(TEXT_75);
stringBuffer.append(property.getDefaultValue());
stringBuffer.append(TEXT_76);
}else if(property.getPassDefault()){
stringBuffer.append(TEXT_77);
}
stringBuffer.append(TEXT_78);
stringBuffer.append(PropertiesDefinitionParser.capFirstLetter(property.getName()));
stringBuffer.append(TEXT_79);
if(property.getPassDefault()){
stringBuffer.append(TEXT_80);
}
stringBuffer.append(TEXT_81);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_82);
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_83);
stringBuffer.append(property.getParentProperty());
}
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_84);
}
stringBuffer.append(TEXT_85);
if(property.getDefaultValue()!=null||property.getPassDefault()){
stringBuffer.append(TEXT_86);
if(property.getDefaultValue()!=null){
stringBuffer.append(TEXT_87);
if(property.getQuoteDefault()){
stringBuffer.append(TEXT_88);
}
stringBuffer.append(property.getDefaultValue());
if(property.getQuoteDefault()){
stringBuffer.append(TEXT_89);
}
stringBuffer.append(TEXT_90);
}else if(property.getPassDefault()){
stringBuffer.append(TEXT_91);
}
stringBuffer.append(TEXT_92);
}else{
stringBuffer.append(TEXT_93);
}
stringBuffer.append(TEXT_94);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_95);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_96);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_97);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_98);
stringBuffer.append(PropertiesDefinitionParser.capFirstLetter(property.getName()));
stringBuffer.append(TEXT_99);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_100);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()));
stringBuffer.append(TEXT_101);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_102);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_103);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_104);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_105);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()));
stringBuffer.append(TEXT_106);
}else if (property.getType().equals(PropertiesDefinitionParser.PropType.BOOLEAN)){
stringBuffer.append(TEXT_107);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_108);
if(property.getPassDefault()){
stringBuffer.append(TEXT_109);
stringBuffer.append(property.getName() );
}
stringBuffer.append(TEXT_110);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_111);
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_112);
stringBuffer.append(property.getParentPropertyLink());
stringBuffer.append(TEXT_113);
};if(property.getDefaultValue()!=null){
stringBuffer.append(TEXT_114);
stringBuffer.append(property.getDefaultValue());
stringBuffer.append(TEXT_115);
}else if(property.getPassDefault()){
stringBuffer.append(TEXT_116);
}else{
stringBuffer.append(TEXT_117);
}
stringBuffer.append(TEXT_118);
stringBuffer.append(PropertiesDefinitionParser.capFirstLetter(property.getName()));
stringBuffer.append(TEXT_119);
if(property.getPassDefault()){
stringBuffer.append(TEXT_120);
}
stringBuffer.append(TEXT_121);
stringBuffer.append(property.getKey());
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_122);
stringBuffer.append(property.getParentProperty());
}
if(property.getDefaultValue()!=null){
stringBuffer.append(TEXT_123);
if(property.getQuoteDefault()){
stringBuffer.append(TEXT_124);
}
stringBuffer.append(property.getDefaultValue());
if(property.getQuoteDefault()){
stringBuffer.append(TEXT_125);
}
}else if(property.getPassDefault()){
stringBuffer.append(TEXT_126);
}else{
stringBuffer.append(TEXT_127);
}
stringBuffer.append(TEXT_128);
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_129);
}
stringBuffer.append(TEXT_130);
stringBuffer.append(property.getKey());
stringBuffer.append(TEXT_131);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_132);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_133);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_134);
stringBuffer.append(PropertiesDefinitionParser.capFirstLetter(property.getName()));
stringBuffer.append(TEXT_135);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_136);
stringBuffer.append(property.getKey());
stringBuffer.append(TEXT_137);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_138);
}else if (property.getType().equals(PropertiesDefinitionParser.PropType.INTEGER)){
stringBuffer.append(TEXT_139);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_140);
if(property.getPassDefault()){
stringBuffer.append(TEXT_141);
stringBuffer.append(property.getName() );
}
stringBuffer.append(TEXT_142);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_143);
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_144);
stringBuffer.append(property.getParentPropertyLink());
stringBuffer.append(TEXT_145);
};if(property.getDefaultValue()!=null){
stringBuffer.append(TEXT_146);
stringBuffer.append(property.getDefaultValue());
stringBuffer.append(TEXT_147);
}else if(property.getPassDefault()){
stringBuffer.append(TEXT_148);
}
stringBuffer.append(TEXT_149);
stringBuffer.append(PropertiesDefinitionParser.capFirstLetter(property.getName()));
stringBuffer.append(TEXT_150);
if(property.getPassDefault()){
stringBuffer.append(TEXT_151);
}
stringBuffer.append(TEXT_152);
stringBuffer.append(property.getKey());
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_153);
stringBuffer.append(property.getParentProperty());
}
if(property.getDefaultValue()!=null){
stringBuffer.append(TEXT_154);
if(property.getQuoteDefault()){
stringBuffer.append(TEXT_155);
}
stringBuffer.append(property.getDefaultValue());
if(property.getQuoteDefault()){
stringBuffer.append(TEXT_156);
}
}else if(property.getPassDefault()){
stringBuffer.append(TEXT_157);
}
stringBuffer.append(TEXT_158);
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_159);
}
stringBuffer.append(TEXT_160);
if (property.getMinValue()!=null){
stringBuffer.append(TEXT_161);
stringBuffer.append(property.getMinValue());
stringBuffer.append(TEXT_162);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_163);
stringBuffer.append(property.getMinValue());
stringBuffer.append(TEXT_164);
}
if (property.getMaxValue()!=null){
stringBuffer.append(TEXT_165);
stringBuffer.append(property.getMaxValue());
stringBuffer.append(TEXT_166);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_167);
stringBuffer.append(property.getMaxValue());
stringBuffer.append(TEXT_168);
}
stringBuffer.append(TEXT_169);
stringBuffer.append(property.getKey());
stringBuffer.append(TEXT_170);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_171);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_172);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_173);
stringBuffer.append(PropertiesDefinitionParser.capFirstLetter(property.getName()));
stringBuffer.append(TEXT_174);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_175);
if (property.getMinValue()!=null){
stringBuffer.append(TEXT_176);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_177);
stringBuffer.append(property.getMinValue());
stringBuffer.append(TEXT_178);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_179);
stringBuffer.append(property.getMinValue());
stringBuffer.append(TEXT_180);
}
if (property.getMaxValue()!=null){
stringBuffer.append(TEXT_181);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_182);
stringBuffer.append(property.getMaxValue());
stringBuffer.append(TEXT_183);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_184);
stringBuffer.append(property.getMaxValue());
stringBuffer.append(TEXT_185);
}
stringBuffer.append(TEXT_186);
stringBuffer.append(property.getKey());
stringBuffer.append(TEXT_187);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_188);
}else if (property.getType().equals(PropertiesDefinitionParser.PropType.LONG)){
stringBuffer.append(TEXT_189);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_190);
if(property.getPassDefault()){
stringBuffer.append(TEXT_191);
stringBuffer.append(property.getName() );
}
stringBuffer.append(TEXT_192);
stringBuffer.append(property.getKey() );
stringBuffer.append(TEXT_193);
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_194);
stringBuffer.append(property.getParentPropertyLink());
stringBuffer.append(TEXT_195);
};if(property.getDefaultValue()!=null){
stringBuffer.append(TEXT_196);
stringBuffer.append(property.getDefaultValue());
stringBuffer.append(TEXT_197);
}else if(property.getPassDefault()){
stringBuffer.append(TEXT_198);
}
stringBuffer.append(TEXT_199);
stringBuffer.append(PropertiesDefinitionParser.capFirstLetter(property.getName()));
stringBuffer.append(TEXT_200);
if(property.getPassDefault()){
stringBuffer.append(TEXT_201);
}
stringBuffer.append(TEXT_202);
stringBuffer.append(property.getKey());
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_203);
stringBuffer.append(property.getParentProperty());
}
if(property.getDefaultValue()!=null){
stringBuffer.append(TEXT_204);
if(property.getQuoteDefault()){
stringBuffer.append(TEXT_205);
}
stringBuffer.append(property.getDefaultValue());
if(property.getQuoteDefault()){
stringBuffer.append(TEXT_206);
}
}else if(property.getPassDefault()){
stringBuffer.append(TEXT_207);
}
stringBuffer.append(TEXT_208);
if(property.getParentProperty()!=null){
stringBuffer.append(TEXT_209);
}
stringBuffer.append(TEXT_210);
if (property.getMinValue()!=null){
stringBuffer.append(TEXT_211);
stringBuffer.append(property.getMinValue());
stringBuffer.append(TEXT_212);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_213);
stringBuffer.append(property.getMinValue());
stringBuffer.append(TEXT_214);
}
if (property.getMaxValue()!=null){
stringBuffer.append(TEXT_215);
stringBuffer.append(property.getMaxValue());
stringBuffer.append(TEXT_216);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_217);
stringBuffer.append(property.getMaxValue());
stringBuffer.append(TEXT_218);
}
stringBuffer.append(TEXT_219);
stringBuffer.append(property.getKey());
stringBuffer.append(TEXT_220);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_221);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_222);
stringBuffer.append(property.getName() );
stringBuffer.append(TEXT_223);
stringBuffer.append(PropertiesDefinitionParser.capFirstLetter(property.getName()));
stringBuffer.append(TEXT_224);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_225);
if (property.getMinValue()!=null){
stringBuffer.append(TEXT_226);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_227);
stringBuffer.append(property.getMinValue());
stringBuffer.append(TEXT_228);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_229);
stringBuffer.append(property.getMinValue());
stringBuffer.append(TEXT_230);
}
if (property.getMaxValue()!=null){
stringBuffer.append(TEXT_231);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_232);
stringBuffer.append(property.getMaxValue());
stringBuffer.append(TEXT_233);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_234);
stringBuffer.append(property.getMaxValue());
stringBuffer.append(TEXT_235);
}
stringBuffer.append(TEXT_236);
stringBuffer.append(property.getKey());
stringBuffer.append(TEXT_237);
stringBuffer.append(PropertiesDefinitionParser.replaceDots(property.getName()) );
stringBuffer.append(TEXT_238);
}
stringBuffer.append(TEXT_239);
}
stringBuffer.append(TEXT_240);
return stringBuffer.toString();
}
}