| |
|
| java.lang.Object com.metaboss.sdlctools.models.metabossmodel.ModelElementUtils
ModelElementUtils | public class ModelElementUtils (Code) | | Set of MetaBossModelElement utility and helper methods realising some facilities seemingly not provided by MDR.
|
Method Summary | |
public static List | getListOfModelElementsInAlphabeticalOrder(Collection pSourceCollection) Returns unmodifiable list consisting of all elements of the
source collection sorted by the value of the name attribute in alphabetical order.
Each element of the source collection must be a an instance of the ModelElement otherwise
ClassCastException will occur.
The reason that this class offers two similar sorting methods (getList... | public static ModelElement | getModelElement(Collection pCollection, String pElementName) | public static SortedSet | getSetOfModelElementsInAlphabeticalOrder(Collection pSourceCollection) Returns unmodifiable sorted set consisting of all elements of the
source collection sorted by the value of the name attribute in alphabetical order.
Each element of the source collection must be a an instance of the ModelElement otherwise
ClassCastException will occur.
The reason that this class offers two similar sorting methods (getList... |
getListOfModelElementsInAlphabeticalOrder | public static List getListOfModelElementsInAlphabeticalOrder(Collection pSourceCollection)(Code) | | Returns unmodifiable list consisting of all elements of the
source collection sorted by the value of the name attribute in alphabetical order.
Each element of the source collection must be a an instance of the ModelElement otherwise
ClassCastException will occur.
The reason that this class offers two similar sorting methods (getList... and getSet...)
is that List and Set offer user diferent facilities and we are not sure which one will
be more useful.
|
getModelElement | public static ModelElement getModelElement(Collection pCollection, String pElementName)(Code) | | Returns MetaBossModelElement with required name from the supplied collection or null
if element with this name does not exist
|
getSetOfModelElementsInAlphabeticalOrder | public static SortedSet getSetOfModelElementsInAlphabeticalOrder(Collection pSourceCollection)(Code) | | Returns unmodifiable sorted set consisting of all elements of the
source collection sorted by the value of the name attribute in alphabetical order.
Each element of the source collection must be a an instance of the ModelElement otherwise
ClassCastException will occur.
The reason that this class offers two similar sorting methods (getList... and getSet...)
is that List and Set offer user diferent facilities and we are not sure which one will
be more useful.
|
|
|
|