org.ow2.petals.topology
Class TopologyBuilder

java.lang.Object
  extended by org.ow2.petals.topology.TopologyBuilder

public final class TopologyBuilder
extends java.lang.Object

The topology builder allows to unmarshall the topology.xml file.

Author:
Nicolas SALATGE - eBMWebSourcing

Field Summary
static java.lang.String NAMESPACE_XSD
          XSD schema
static java.lang.String TOPOLOGY_XSD
          Topology schema
 
Method Summary
static Topology createTopology(java.io.File xmlFile)
          Create the topology object.
static Topology createTopology(java.lang.String xmlFileName)
          Create the topology object.
static void marshallTopologyFile(java.io.File xmlFile, Topology topology)
          Write the topology file to the disk
 
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

TOPOLOGY_XSD

public static final java.lang.String TOPOLOGY_XSD
Topology schema

See Also:
Constant Field Values
Method Detail

createTopology

public static Topology createTopology(java.lang.String xmlFileName)
                               throws TopologyException
Create the topology object.

Parameters:
xmlFileName - the xml file name
Returns:
the topology
Throws:
TopologyException - impossible to create the topology

createTopology

public static Topology createTopology(java.io.File xmlFile)
                               throws TopologyException
Create the topology object.

Parameters:
xmlFile - the xml file
Returns:
the topology
Throws:
TopologyException - impossible to create the topology

marshallTopologyFile

public static void marshallTopologyFile(java.io.File xmlFile,
                                        Topology topology)
                                 throws TopologyException
Write the topology file to the disk

Parameters:
xmlFile -
topology -
Throws:
TopologyException


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