1 12 package org.openbravo.xmlEngine; 13 14 import java.util.Vector ; 15 16 class ParameterTemplate implements XmlComponentTemplate, IDComponent { 17 String strName = null; 18 int type; 19 String strDefault = null; 20 String section = null; 21 XmlComponentTemplate xmlComponentTemplate = null; 22 Vector <ReplaceElement> vecReplace = null; 23 24 public int type() { 25 return PARAMETER; 26 } 27 28 29 public ParameterValue createParameterValue(XmlDocument xmlDocument) { 30 ParameterValue parameterValue = xmlDocument.hasParameterValue.get(strName); 31 if (parameterValue == null) parameterValue = new ParameterValue(this, xmlDocument); 32 return parameterValue; 33 } 34 public XmlComponentValue createXmlComponentValue(XmlDocument xmlDocument) { 35 return createParameterValue(xmlDocument); 36 } 37 38 } 39 | Popular Tags |