| java.lang.Object org.andromda.core.metafacade.MetafacadeUtils
MetafacadeUtils | final class MetafacadeUtils (Code) | | Contains static utility methods for dealing with metafacade instances.
author: Chad Brandon |
Method Summary | |
static MetafacadeBase | constructMetafacade(Class metafacadeClass, Object mappingObject, String context) Constructs a new metafacade from the given
metafacadeClass and mappingObject .
Parameters: metafacadeClass - the metafacade class. Parameters: mappingObject - the object to which the metafacade is mapped. | public static String | getInheritedMappingClassName(MetafacadeMapping mapping) Retrieves the inherited mapping class name for the given mapping by traveling
up the inheritance hiearchy to find the first one that has the mapping class name declared.
Parameters: mapping - the MetafacadeMapping instance for which we'll retrieve it's mapping class. | public static boolean | isMetafacadeModelPresent(String namespace) Indicates whether or not a metafacade model facade is present within the
given namespace
Parameters: namespace - the namespace to check. | static boolean | propertiesValid(MetafacadeBase metafacade, MetafacadeMapping mapping) Indicates whether or not the mapping properties (present on the mapping, if any) are valid on the
metafacade .
Parameters: metafacade - the metafacade instance on which the properties will be validated. Parameters: mapping - the MetafacadeMapping instance that contains the properties. |
constructMetafacade | static MetafacadeBase constructMetafacade(Class metafacadeClass, Object mappingObject, String context) throws Exception(Code) | | Constructs a new metafacade from the given
metafacadeClass and mappingObject .
Parameters: metafacadeClass - the metafacade class. Parameters: mappingObject - the object to which the metafacade is mapped. the new metafacade. throws: Exception - if any error occurs during metafacade creation |
getInheritedMappingClassName | public static String getInheritedMappingClassName(MetafacadeMapping mapping)(Code) | | Retrieves the inherited mapping class name for the given mapping by traveling
up the inheritance hiearchy to find the first one that has the mapping class name declared.
Parameters: mapping - the MetafacadeMapping instance for which we'll retrieve it's mapping class. the name of the mapping class. |
isMetafacadeModelPresent | public static boolean isMetafacadeModelPresent(String namespace)(Code) | | Indicates whether or not a metafacade model facade is present within the
given namespace
Parameters: namespace - the namespace to check. true/false |
propertiesValid | static boolean propertiesValid(MetafacadeBase metafacade, MetafacadeMapping mapping)(Code) | | Indicates whether or not the mapping properties (present on the mapping, if any) are valid on the
metafacade .
Parameters: metafacade - the metafacade instance on which the properties will be validated. Parameters: mapping - the MetafacadeMapping instance that contains the properties. true/false |
|
|