org.ow2.petals.systemstate
Class SystemStateBuilder

java.lang.Object
  extended by org.ow2.petals.systemstate.SystemStateBuilder

public final class SystemStateBuilder
extends java.lang.Object

The System State builder allows to marshall/unmarshall the petalsSystemState.xml file.

Author:
rnaudin - EBM WebSourcing

Field Summary
static java.lang.String NAMESPACE_XSD
          XSD schema
static java.lang.String SYSTEMSTATE_XSD
          Topology schema
 
Method Summary
static void buildXmlFileSystemState(SystemState systemStateClass, java.io.File systemStateFile)
          Build the XML File from the System State in Java classes form.
static java.lang.String buildXmlStringSystemState(SystemState systemStateClass)
          Build the XML String from the System State in Java classes form.
static SystemState createSystemState(java.io.File xmlFile)
          Create the system state object.
static SystemState createSystemState(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

SYSTEMSTATE_XSD

public static final java.lang.String SYSTEMSTATE_XSD
Topology schema

See Also:
Constant Field Values
Method Detail

createSystemState

public static SystemState createSystemState(java.lang.String xmlFileName)
                                     throws SystemStateException
Create the system state object.

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

createSystemState

public static SystemState createSystemState(java.io.File xmlFile)
                                     throws SystemStateException
Create the system state object.

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

buildXmlStringSystemState

public static java.lang.String buildXmlStringSystemState(SystemState systemStateClass)
                                                  throws SystemStateException
Build the XML String from the System State in Java classes form.

Parameters:
jbiDescriptorClass - The JBI Descriptor root class
Returns:
The String to fill with the JBI descriptor XML
Throws:
JBIDescriptorException - The exception raised during the marshaller creation or the exception raised during the build of the XML string.
SystemStateException

buildXmlFileSystemState

public static void buildXmlFileSystemState(SystemState systemStateClass,
                                           java.io.File systemStateFile)
                                    throws SystemStateException
Build the XML File from the System State in Java classes form.

Parameters:
jbiDescriptorClass - The JBI Descriptor root class
Throws:
JBIDescriptorException - The exception raised during the marshaller creation or the exception raised during the build of the XML string.
SystemStateException


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