类 ConfigBase
java.lang.Object
com.gdxsoft.easyweb.script.userConfig.ConfigBase
- 直接已知子类:
FileConfig,JdbcConfig,ResourceConfig
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract booleanbooleanCheck if the item in the configuration filegetDocumentByXmlString(String xmlContent) Return the configuration documentabstract DocumentloadItem()return the item from the configuration fileloadItemFromDoc(Document doc) return the item from the configuration documentvoidsetFixedXmlName(String fixedXmlName) voidsetItemName(String itemName) voidsetScriptPath(ConfScriptPath scriptPath) voidsetXmlName(String xmlName)
-
构造器详细资料
-
ConfigBase
public ConfigBase() -
ConfigBase
-
-
方法详细资料
-
loadItemFromDoc
return the item from the configuration document- 参数:
doc- the XML documentitemName- 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
- 抛出:
ParserConfigurationExceptionSAXExceptionIOException
-
checkItemExists
public boolean checkItemExists()Check if the item in the configuration file- 参数:
xmlName- the configuration fileitemName- the item name- 返回:
- true/false
-
checkConfigurationExists
public abstract boolean checkConfigurationExists() -
loadConfiguration
- 抛出:
Exception
-
loadItem
return the item from the configuration file- 参数:
itemName- the item name- 抛出:
Exception
-
setFixedXmlName
-
getScriptPath
-
getFixedXmlName
-
getXmlName
-
getItemName
-
setScriptPath
-
setXmlName
-
setItemName
-