|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.metafacade.MetafacadeUtils
final class MetafacadeUtils
Contains static utility methods for dealing with metafacade instances.
| Constructor Summary | |
|---|---|
MetafacadeUtils()
|
|
| Method Summary | |
|---|---|
(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
MetafacadeUtils()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||