org.andromda.metafacades.uml
Class UMLMetafacadeUtils

java.lang.Object
  extended byorg.andromda.metafacades.uml.UMLMetafacadeUtils

public class UMLMetafacadeUtils
extends Object

Contains utilities that are common to the UML metafacades.

Author:
Chad Brandon

Constructor Summary
UMLMetafacadeUtils()
           
 
Method Summary
static String getGetterPrefix(ClassifierFacade type)
          Gets the getter prefix for a getter operation given the type.
static boolean isConstraintKind(String expression, String kind)
          Returns true if the passed in constraint expression is of type kind, false otherwise.
static boolean isType(ClassifierFacade classifier, String typeName)
          Returns true or false depending on whether or not this Classifier or any of its specializations is of the given type having the specified typeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLMetafacadeUtils

public UMLMetafacadeUtils()
Method Detail

isType

public static boolean isType(ClassifierFacade classifier,
                             String typeName)
Returns true or false depending on whether or not this Classifier or any of its specializations is of the given type having the specified typeName

Parameters:
typeName - the name of the type (i.e. datatype::Collection)
Returns:
true/false

getGetterPrefix

public static String getGetterPrefix(ClassifierFacade type)
Gets the getter prefix for a getter operation given the type.

Parameters:
type - the type from which to determine the prefix.
Returns:
the gettern prefix.

isConstraintKind

public static boolean isConstraintKind(String expression,
                                       String kind)
Returns true if the passed in constraint expression is of type kind, false otherwise.

Parameters:
expression - the expression to check.
kind - the constraint kind (i.e. inv,pre, body, etc).
Returns:
true/false


Copyright © 2003-2006 The AndroMDA Team. All Rights Reserved.