org.ow2.clif.scenario.isac.egui.model
Class ModelReaderXIS

java.lang.Object
  extended by org.ow2.clif.scenario.isac.egui.model.ModelReaderXIS

public class ModelReaderXIS
extends java.lang.Object

Some function for reading the model

Author:
Joan Chaumont, Bruno Dillenseger

Constructor Summary
ModelReaderXIS()
           
 
Method Summary
static java.util.Vector<java.lang.String> getActionHelp(org.w3c.dom.Element element, PluginManager plugManager)
          Get the help of a giving action
static org.w3c.dom.Element getBehaviorById(org.w3c.dom.Document doc, java.lang.String id)
          Get a behavior Element by id
static java.lang.String[] getBehaviorsId(org.w3c.dom.Document doc)
          Get all behavior ids in a doc
static java.util.Map<java.lang.String,java.lang.String> getParams(org.w3c.dom.Element elt)
          Get all params of an element
static java.util.Vector<java.lang.String> getPluginHelp(org.w3c.dom.Element element, PluginManager plugManager)
          Get the help of a giving plugin
static java.util.Map<java.lang.String,java.lang.String> getPlugins(org.w3c.dom.Document doc)
          Get all plugins imported in the document
static java.util.Map<java.lang.String,LoadProfile> getProfiles(org.w3c.dom.Document doc)
          Get all profiles in the document
static java.lang.String[] getProfilesId(org.w3c.dom.Document doc)
          Get all profiles ids in a doc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelReaderXIS

public ModelReaderXIS()
Method Detail

getBehaviorsId

public static java.lang.String[] getBehaviorsId(org.w3c.dom.Document doc)
Get all behavior ids in a doc

Parameters:
doc - the document
Returns:
String[] all ids

getBehaviorById

public static org.w3c.dom.Element getBehaviorById(org.w3c.dom.Document doc,
                                                  java.lang.String id)
Get a behavior Element by id

Parameters:
doc - the entire document
id - id of the behavior
Returns:
Element the behavior

getProfilesId

public static java.lang.String[] getProfilesId(org.w3c.dom.Document doc)
Get all profiles ids in a doc

Parameters:
doc - the document
Returns:
String[] all ids

getPlugins

public static java.util.Map<java.lang.String,java.lang.String> getPlugins(org.w3c.dom.Document doc)
Get all plugins imported in the document

Parameters:
doc - the entire document
Returns:
HashMap of all plugins (id, name)

getParams

public static java.util.Map<java.lang.String,java.lang.String> getParams(org.w3c.dom.Element elt)
Get all params of an element

Parameters:
elt -
Returns:
HashMap of params (name, value)

getActionHelp

public static java.util.Vector<java.lang.String> getActionHelp(org.w3c.dom.Element element,
                                                               PluginManager plugManager)
Get the help of a giving action

Parameters:
element -
plugManager -
Returns:
Vector help

getPluginHelp

public static java.util.Vector<java.lang.String> getPluginHelp(org.w3c.dom.Element element,
                                                               PluginManager plugManager)
Get the help of a giving plugin

Parameters:
element -
plugManager -
Returns:
Vector help

getProfiles

public static java.util.Map<java.lang.String,LoadProfile> getProfiles(org.w3c.dom.Document doc)
Get all profiles in the document

Parameters:
doc -
Returns:
HashMap (id, LoadProfile)