|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.memphis.ccrg.lida.framework.initialization.FactoriesDataXmlLoader
public class FactoriesDataXmlLoader
Loads the factoriesData.xml file which configures the factories of the
framework i.e. what strategies are used by the objects created by the
factory, the types of node, links, and FrameworkTask that can be created as well.
| Constructor Summary | |
|---|---|
FactoriesDataXmlLoader()
|
|
| Method Summary | |
|---|---|
(package private) static void |
checkStrategies(java.util.List<java.lang.String> strat,
java.util.Map<java.lang.String,StrategyDef> strategies)
Verifies if the List of Strategies names are defined |
(package private) static java.util.Map<ModuleName,java.lang.String> |
getAssociatedModules(org.w3c.dom.Element element)
reads the associated modules of this element |
(package private) static LinkableDef |
getLinkable(org.w3c.dom.Element e,
java.util.Map<java.lang.String,StrategyDef> strategies)
|
(package private) static java.util.Map<java.lang.String,LinkableDef> |
getLinkables(org.w3c.dom.Element element,
java.lang.String groupName,
java.lang.String childName,
java.util.Map<java.lang.String,StrategyDef> strategies)
Reads in and creates all LinkableDefs specified in
Element |
(package private) static java.util.Map<java.lang.String,StrategyDef> |
getStrategies(org.w3c.dom.Element element)
Reads in and creates all StrategyDefs specified in Element |
(package private) static StrategyDef |
getStrategyDef(org.w3c.dom.Element e)
|
(package private) static FrameworkTaskDef |
getTaskDef(org.w3c.dom.Element e,
java.util.Map<java.lang.String,StrategyDef> strategies)
|
(package private) static java.util.Map<java.lang.String,FrameworkTaskDef> |
getTasks(org.w3c.dom.Element element,
java.util.Map<java.lang.String,StrategyDef> strategies)
Reads in and creates all FrameworkTaskDefs specified in
Element |
static void |
loadFactoriesData(java.util.Properties properties)
Loads ElementFactory with object types specified in
Properties |
(package private) static void |
parseDocument(org.w3c.dom.Document dom)
Parses the xml document creating the elements for ElementFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactoriesDataXmlLoader()
| Method Detail |
|---|
public static void loadFactoriesData(java.util.Properties properties)
ElementFactory with object types specified in
Properties
properties - Propertiesstatic void parseDocument(org.w3c.dom.Document dom)
ElementFactory
dom - the xml dom Documentstatic java.util.Map<java.lang.String,StrategyDef> getStrategies(org.w3c.dom.Element element)
StrategyDefs specified in Element
element - Dom element
StrategyDef indexed by namestatic StrategyDef getStrategyDef(org.w3c.dom.Element e)
e - Dom element
Strategy definition
static java.util.Map<java.lang.String,LinkableDef> getLinkables(org.w3c.dom.Element element,
java.lang.String groupName,
java.lang.String childName,
java.util.Map<java.lang.String,StrategyDef> strategies)
LinkableDefs specified in
Element
element - Dom elementgroupName - the name of the group containing LinkableDef datachildName - the name of the children containing LinkableDef datastrategies - Map with StrategyDef indexed by name
LinkableDef indexed by name
static LinkableDef getLinkable(org.w3c.dom.Element e,
java.util.Map<java.lang.String,StrategyDef> strategies)
e - Dom elementstrategies - Map with StrategyDef indexed by name
Linkable definition
static java.util.Map<java.lang.String,FrameworkTaskDef> getTasks(org.w3c.dom.Element element,
java.util.Map<java.lang.String,StrategyDef> strategies)
FrameworkTaskDefs specified in
Element
element - Dom elementstrategies - Map with StrategyDef indexed by name
FrameworkTaskDef indexed by namestatic java.util.Map<ModuleName,java.lang.String> getAssociatedModules(org.w3c.dom.Element element)
element - Dom element
static FrameworkTaskDef getTaskDef(org.w3c.dom.Element e,
java.util.Map<java.lang.String,StrategyDef> strategies)
e - Dom elementstrategies - Map with StrategyDef indexed by name
FrameworkTaskDef definition
static void checkStrategies(java.util.List<java.lang.String> strat,
java.util.Map<java.lang.String,StrategyDef> strategies)
strat - Strategies names to validatestrategies - Map with StrategyDef indexed by name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||