org.ow2.petals.topology
Class TopologyHelper

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

public final class TopologyHelper
extends java.lang.Object

Author:
alouis - eBMWebSourcing

Method Summary
static java.util.Collection<Container> findAllContainers(Topology topology)
          Retrieve all the containers in the given topology
static Container findContainer(java.lang.String containerName, Subdomain subdomain)
          Retrieve the container in the given Subdomain
static Container findContainer(java.lang.String containerName, Topology topology)
          Retrieve the container in the given topology
static Subdomain findSubdomain(Container container, Topology topology)
          Retrieve the sub domain in the given topology from the given container
static Subdomain findSubdomain(java.lang.String subdomainName, Topology topology)
          Retrieve the sub domain in the given topology
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findSubdomain

public static Subdomain findSubdomain(java.lang.String subdomainName,
                                      Topology topology)
Retrieve the sub domain in the given topology

Parameters:
subdomainName - may be null
topology - must be non null
Returns:
the sub-domain, null if not found

findSubdomain

public static Subdomain findSubdomain(Container container,
                                      Topology topology)
Retrieve the sub domain in the given topology from the given container

Parameters:
container - must be non null
topology - must be non null
Returns:
the sub-domain, null if not found

findContainer

public static Container findContainer(java.lang.String containerName,
                                      Topology topology)
Retrieve the container in the given topology

Parameters:
containerName - may be null
topology - must be non null
Returns:
the container, null if not found

findContainer

public static Container findContainer(java.lang.String containerName,
                                      Subdomain subdomain)
Retrieve the container in the given Subdomain

Parameters:
containerName - may be null
subdomain - must be non null
Returns:
the container, null if not found

findAllContainers

public static java.util.Collection<Container> findAllContainers(Topology topology)
Retrieve all the containers in the given topology

Parameters:
topology - must be non null
Returns:
collection of all the containers of the topology, not null, can be empty


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