org.ow2.petals.regulation
Class RegulationBuilder

java.lang.Object
  extended by org.ow2.petals.regulation.RegulationBuilder

public final class RegulationBuilder
extends java.lang.Object

The Regulation builder allows to marshall/unmarshall the petalsRegulation.xml file.

Author:
Roland Naudin - EBM WebSourcing

Field Summary
static java.lang.String NAMESPACE_XSD
          XSD schema
static java.lang.String REGULATION_XSD
          Topology schema
 
Method Summary
static void buildXmlFileRegulation(Regulation regulationClass, java.io.File regulationFile)
          Build the XML File from the Regulation in Java classes form.
static java.lang.String buildXmlStringRegulation(Regulation regulationClass)
          Build the XML String from the System State in Java classes form.
static Regulation createRegulation(java.io.File xmlFile)
          Create the system state object.
static Regulation createRegulation(java.lang.String xmlFileName)
          Create the system state object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE_XSD

public static final java.lang.String NAMESPACE_XSD
XSD schema

See Also:
Constant Field Values

REGULATION_XSD

public static final java.lang.String REGULATION_XSD
Topology schema

See Also:
Constant Field Values
Method Detail

createRegulation

public static Regulation createRegulation(java.lang.String xmlFileName)
                                   throws RegulationException
Create the system state object.

Parameters:
xmlFileName - the xml file name
Returns:
the topology
Throws:
RegulationException - impossible to create the system state

createRegulation

public static Regulation createRegulation(java.io.File xmlFile)
                                   throws RegulationException
Create the system state object.

Parameters:
xmlFile - the xml file
Returns:
the system state
Throws:
RegulationException - impossible to create the system state

buildXmlStringRegulation

public static java.lang.String buildXmlStringRegulation(Regulation regulationClass)
                                                 throws RegulationException
Build the XML String from the System State in Java classes form.

Parameters:
regulationClass -
Returns:
Throws:
RegulationException - The exception raised during the marshaller creation or the exception raised during the build of the XML string.

buildXmlFileRegulation

public static void buildXmlFileRegulation(Regulation regulationClass,
                                          java.io.File regulationFile)
                                   throws RegulationException
Build the XML File from the Regulation in Java classes form.

Parameters:
regulationClass -
regulationFile -
Throws:
RegulationException - The exception raised during the marshaller creation or the exception raised during the build of the XML file.


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.