|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jsfunit.analysis.util.ConfigUtils
public class ConfigUtils
Collect methods that deal with JSF configuration.
Nested Class Summary | |
---|---|
static class |
ConfigUtils.ConfigItemType
Enumeration to specify the type of a configuration item. |
Constructor Summary | |
---|---|
ConfigUtils()
|
Method Summary | |
---|---|
List<String> |
extractRenderkitIdsDefined(Document configFile,
String configFilePath)
Extract a list of renderkits defined in the config file. |
Map<String,Document> |
getConfigFileDoms()
Get the configFileDoms. |
List<String> |
getConfigFilePaths()
Get the configFilePaths. |
StreamProvider |
getStreamProvider()
Accessor for the streamProvider attribute |
boolean |
isConfigured(ConfigUtils.ConfigItemType elementType,
String elementName,
boolean includeClassPath)
Verify whether a config item is configured in one of the config files that exist in the setup. |
boolean |
isConfiguredConfigItemType(ConfigUtils.ConfigItemType elementType,
String elementName,
Document configFile,
String configFilePath)
Verify whether a config item is configured in one of the config files that exist in the setup. |
void |
setConfigFileDoms(Map<String,Document> configFileDoms)
Set the configFileDoms. |
void |
setConfigFilePaths(List<String> configFilePaths)
Set the configFilePaths. |
void |
setStreamProvider(StreamProvider streamProvider)
Accessor for the streamProvider attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigUtils()
Method Detail |
---|
public boolean isConfigured(ConfigUtils.ConfigItemType elementType, String elementName, boolean includeClassPath)
elementType
- the configuration element typeelementName
- name of the configuration elementincludeClassPath
- if true, then the config-files within the classpath's jar files are also searched
public boolean isConfiguredConfigItemType(ConfigUtils.ConfigItemType elementType, String elementName, Document configFile, String configFilePath)
elementType
- the configuration element typeelementName
- name of the configuration elementconfigFile
- the preparsed config fileconfigFilePath
- the path to the config file
public List<String> extractRenderkitIdsDefined(Document configFile, String configFilePath)
configFile
- the preparsed config fileconfigFilePath
- the path to the config file
public List<String> getConfigFilePaths()
public void setConfigFilePaths(List<String> configFilePaths)
configFilePaths
- The configFilePaths to set.public Map<String,Document> getConfigFileDoms()
public void setConfigFileDoms(Map<String,Document> configFileDoms)
configFileDoms
- The configFileDoms to set.public StreamProvider getStreamProvider()
public void setStreamProvider(StreamProvider streamProvider)
Accessor for the streamProvider attribute. Usually used to set a special StreamProvider. By default a DefaultStreamProvider is created.
streamProvider
- the new StreamProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |