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

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

public class ModelWriterXIS
extends java.lang.Object

Test if the model is right and correct it if it's not

Author:
Joan Chaumont

Constructor Summary
ModelWriterXIS()
           
 
Method Summary
static void addParams(org.w3c.dom.Document doc, org.w3c.dom.Element parent, java.lang.Iterable<ParameterDescription> params)
          Sets the params section of an action or test (aka condition)
static org.w3c.dom.Element correctBehaviorsNode(org.w3c.dom.Document doc)
          Add the behaviors node
static org.w3c.dom.Element correctLoadProfile(org.w3c.dom.Document doc)
          Add loadprofile node
static org.w3c.dom.Element correctPlugins(org.w3c.dom.Document doc)
          Add the plugins node
static org.w3c.dom.Element correctScenario(org.w3c.dom.Document doc)
          Add the scenario node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelWriterXIS

public ModelWriterXIS()
Method Detail

correctScenario

public static org.w3c.dom.Element correctScenario(org.w3c.dom.Document doc)
Add the scenario node

Parameters:
doc -
Returns:
Element the element scenario

correctBehaviorsNode

public static org.w3c.dom.Element correctBehaviorsNode(org.w3c.dom.Document doc)
Add the behaviors node

Parameters:
doc -
Returns:
Element the element behaviors

correctLoadProfile

public static org.w3c.dom.Element correctLoadProfile(org.w3c.dom.Document doc)
Add loadprofile node

Parameters:
doc -
Returns:
Element the element loadprofile

correctPlugins

public static org.w3c.dom.Element correctPlugins(org.w3c.dom.Document doc)
Add the plugins node

Parameters:
doc -
Returns:
Element the element plugins

addParams

public static void addParams(org.w3c.dom.Document doc,
                             org.w3c.dom.Element parent,
                             java.lang.Iterable<ParameterDescription> params)
Sets the params section of an action or test (aka condition)

Parameters:
doc - the target XML document
parent - the target action (sample, control, timer) or test element
params - the hash table of key-value pairs (null means no parameter to add)