cds.aladin
Class ComponentResolver

java.lang.Object
  extended by cds.aladin.ComponentResolver

public class ComponentResolver
extends java.lang.Object

Title : ComponentResolver

Description : resolves a component thanks to its name

Version:
0.1 (kickoff : 02/02/2004)
Author:
Thomas Boch [CDS]

Constructor Summary
ComponentResolver()
          Constructor
 
Method Summary
 java.lang.Object findByFullName(java.lang.String name, java.lang.Object start)
          Find an object by a name of the form objectA.objectB.objectC
 java.lang.Object findByName(java.lang.String name, java.lang.Object start)
          Find a component according to its name
 boolean isHomeMade(java.lang.String name, java.lang.Object start)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentResolver

public ComponentResolver()
Constructor

Method Detail

findByFullName

public java.lang.Object findByFullName(java.lang.String name,
                                       java.lang.Object start)
Find an object by a name of the form objectA.objectB.objectC

Parameters:
name - name of the component we search, may be of the form objectA.objectB.objectC
start - object from which we start the search
Returns:
the searched object, null if not found

findByName

public java.lang.Object findByName(java.lang.String name,
                                   java.lang.Object start)
Find a component according to its name

Parameters:
name - name of the component to search
start - object from which we start the search
Returns:
the searched object, null if not found REMARQUE : pour le moment, la recherche ne se fait qu'ŕ un niveau On verra par la suite si une recherche récursive est nécessaire

isHomeMade

public boolean isHomeMade(java.lang.String name,
                          java.lang.Object start)


Copyright © 2009 UDS/CNRS