org.andromda.schema2xmi
Class ModelElementFinder

java.lang.Object
  extended by org.andromda.schema2xmi.ModelElementFinder

public class ModelElementFinder
extends java.lang.Object

Finds model elements by their names.

Author:
Chad Brandon

Constructor Summary
ModelElementFinder()
           
 
Method Summary
static java.lang.Object find(org.omg.uml.modelmanagement.Model model, java.lang.String fullyQualifiedName)
          Finds the model element having the fullyQualifiedName in the model, returns null if not found.
static java.lang.Object find(org.omg.uml.UmlPackage modelPackage, java.lang.String name)
          Finds and returns the first model element having the given name in the modelPackage, returns null if not found.
static java.lang.Object find(org.omg.uml.modelmanagement.UmlPackage umlPackage, java.lang.String name)
          Finds and returns the first model element having the given name in the umlPackage, returns null if not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelElementFinder

public ModelElementFinder()
Method Detail

find

public static java.lang.Object find(org.omg.uml.modelmanagement.Model model,
                                    java.lang.String fullyQualifiedName)
Finds the model element having the fullyQualifiedName in the model, returns null if not found.

Parameters:
model - The model to search
fullyQualifiedName - the fully qualified name to find.
Returns:
the found model element.

find

public static java.lang.Object find(org.omg.uml.UmlPackage modelPackage,
                                    java.lang.String name)
Finds and returns the first model element having the given name in the modelPackage, returns null if not found.

Parameters:
modelPackage - The modelPackage to search
name - the name to find.
Returns:
the found model element.

find

public static java.lang.Object find(org.omg.uml.modelmanagement.UmlPackage umlPackage,
                                    java.lang.String name)
Finds and returns the first model element having the given name in the umlPackage, returns null if not found.

Parameters:
umlPackage - The modelPackage to search
name - the name to find.
Returns:
the found model element.


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.