org.ow2.jasmine.jade.reflex.util
Class Util

java.lang.Object
  extended by org.ow2.jasmine.jade.reflex.util.Util

public class Util
extends java.lang.Object

Provides utility methods to deal with Fractal components.

Author:
Noel de palma, Fabienne Boyer

Constructor Summary
Util()
           
 
Method Summary
static org.objectweb.fractal.api.Component find(org.objectweb.fractal.api.Component c, java.lang.String sub)
          utility method to find a subcomponent from a component root.
static org.objectweb.fractal.api.Component search(org.objectweb.fractal.api.Component cmp, java.lang.String subcmpname)
          utility method which search if a component has a direct subcomponent with a given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

search

public static org.objectweb.fractal.api.Component search(org.objectweb.fractal.api.Component cmp,
                                                         java.lang.String subcmpname)
utility method which search if a component has a direct subcomponent with a given name.

Parameters:
cmp - the component to inspect
subcmpname - the name of the subcomponent to search
Returns:
the reference of the subcomponent (null if not found)

find

public static org.objectweb.fractal.api.Component find(org.objectweb.fractal.api.Component c,
                                                       java.lang.String sub)
utility method to find a subcomponent from a component root.

Parameters:
c - the component root
sub - the full path name of the component to find.
Returns:
the component or null if the cmp is not found. example : if C0 has 3 subcmp : C1,C2,C3 if C2 has 2 subcmp : C4,C5 find(C0,"C4/C5") will return the ref of C5


Copyright © 2008 OW2 Consortium. All Rights Reserved.