类 ConfigBase

java.lang.Object
com.gdxsoft.easyweb.script.userConfig.ConfigBase
直接已知子类:
FileConfig, JdbcConfig, ResourceConfig

public abstract class ConfigBase extends Object
  • 构造器详细资料

  • 方法详细资料

    • loadItemFromDoc

      public Node loadItemFromDoc(Document doc) throws Exception
      return the item from the configuration document
      参数:
      doc - the XML document
      itemName - the item name
      抛出:
      Exception
    • getDocumentByXmlString

      public Document getDocumentByXmlString(String xmlContent) throws ParserConfigurationException, SAXException, IOException
      Return the configuration document
      参数:
      xmlContent - the configuration XML content
      返回:
      the configuration document
      抛出:
      ParserConfigurationException
      SAXException
      IOException
    • checkItemExists

      public boolean checkItemExists()
      Check if the item in the configuration file
      参数:
      xmlName - the configuration file
      itemName - the item name
      返回:
      true/false
    • checkConfigurationExists

      public abstract boolean checkConfigurationExists()
    • loadConfiguration

      public abstract Document loadConfiguration() throws Exception
      抛出:
      Exception
    • loadItem

      public Node loadItem() throws Exception
      return the item from the configuration file
      参数:
      itemName - the item name
      抛出:
      Exception
    • setFixedXmlName

      public void setFixedXmlName(String fixedXmlName)
    • getScriptPath

      public ConfScriptPath getScriptPath()
    • getFixedXmlName

      public String getFixedXmlName()
    • getXmlName

      public String getXmlName()
    • getItemName

      public String getItemName()
    • setScriptPath

      public void setScriptPath(ConfScriptPath scriptPath)
    • setXmlName

      public void setXmlName(String xmlName)
    • setItemName

      public void setItemName(String itemName)