|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.XArchMetadataUtils
| Constructor Summary | |
XArchMetadataUtils()
|
|
| Method Summary | |
static Set |
getAvailablePromotions(XArchTypeMetadata type)
Returns a set of all possible types to which the given type can be promotoed. |
static XArchTypeMetadata |
getParent(XArchTypeMetadata type)
Returns the parent type's metadata, or null if non exists. |
static List |
getPromotionPathTypes(XArchTypeMetadata fromType,
XArchTypeMetadata toType)
Returns a list of XArchTypeMetadata involved in promoting
an instance of fromType to an instance of
toType. |
static Collection |
getTopLevelElements()
Returns a collection of all top level elements. |
static XArchTypeMetadata |
getTypeMetadata(String packageTitle,
String typeName)
Returns the type metadata describing the specified type. |
static boolean |
isAssignable(XArchTypeMetadata fromType,
XArchTypeMetadata toType)
Determines if the type represented by fromType is
either the same as, or is a supertype of, the type represented by
toType. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XArchMetadataUtils()
| Method Detail |
public static XArchTypeMetadata getTypeMetadata(String packageTitle,
String typeName)
packageTitle - package containing the type, or null if the
type has no packagetypeName - the type to return
public static boolean isAssignable(XArchTypeMetadata fromType,
XArchTypeMetadata toType)
fromType is
either the same as, or is a supertype of, the type represented by
toType. It returns true if so;
otherwise it returns false.
true if fromType is either
the same as, or is a supertype of, toType.public static Collection getTopLevelElements()
public static XArchTypeMetadata getParent(XArchTypeMetadata type)
null if non exists.
type - the child metadata from which to determine the parent
null if non exists.public static Set getAvailablePromotions(XArchTypeMetadata type)
type - the type metadata to start from
public static List getPromotionPathTypes(XArchTypeMetadata fromType,
XArchTypeMetadata toType)
XArchTypeMetadata involved in promoting
an instance of fromType to an instance of
toType. An empty list will be returned if
fromType is an instance of toType.
This method will return null if it is not possible
to promote fromType to toType.
fromType - the initial typetoType - the desired type
fromType to
toType, or null if it is not
possible.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||