|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ocltf.utils.FacadeUtils
Contains utilities for dealing with model "facade" objects.
ModelFacade
Constructor Summary | |
FacadeUtils()
|
Method Summary | |
static java.util.Collection |
filterElementsByType(java.util.Collection elements,
java.lang.Class type)
Filters the elements for the elements collection by the specified type. |
static java.lang.Object |
getElementAsType(java.lang.Object element,
java.lang.Class type)
Checks to see if the element is the specified type and if so casts it to the object and returns it, otherwise it returns null. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FacadeUtils()
Method Detail |
public static java.lang.Object getElementAsType(java.lang.Object element, java.lang.Class type)
element
- the element to check.type
- the Class type.
public static java.util.Collection filterElementsByType(java.util.Collection elements, java.lang.Class type)
elements
- the elements to filter.type
- the model element type which to filter by
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |