final class MetafacadeUtils extends Object
Constructor and Description |
---|
MetafacadeUtils() |
Modifier and Type | Method and Description |
---|---|
(package private) static MetafacadeBase |
constructMetafacade(Class metafacadeClass,
Object mappingObject,
String context)
Constructs a new
metafacade from the given
metafacadeClass and mappingObject . |
static Set<String> |
getInheritedMappingClassNames(MetafacadeMapping mapping)
Retrieves the inherited mapping class names for the given
mapping by traveling
up the inheritance hierarchy to find the ones that have the mapping class name declared. |
static boolean |
isMetafacadeModelPresent(String namespace)
Indicates whether or not a metafacade model facade is present within the
given namespace
|
(package private) 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 . |
MetafacadeUtils()
static boolean propertiesValid(MetafacadeBase metafacade, MetafacadeMapping mapping)
metafacade
.metafacade
- the metafacade instance on which the properties will be validated.mapping
- the MetafacadeMapping instance that contains the properties.static MetafacadeBase constructMetafacade(Class metafacadeClass, Object mappingObject, String context) throws Exception
metafacade
from the given
metafacadeClass
and mappingObject
.metafacadeClass
- the metafacade class.mappingObject
- the object to which the metafacade is mapped.context
- Exception
- if any error occurs during metafacade creationpublic static Set<String> getInheritedMappingClassNames(MetafacadeMapping mapping)
mapping
by traveling
up the inheritance hierarchy to find the ones that have the mapping class name declared.mapping
- the MetafacadeMapping
instance for which we'll retrieve its mapping classes.public static boolean isMetafacadeModelPresent(String namespace)
namespace
- the namespace to check.Copyright © 2003–2014 AndroMDA.org. All rights reserved.