public class PartUtils
extends java.lang.Object
IVisualParts.| Constructor and Description |
|---|
PartUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends IVisualPart<VR,? extends VR>,VR> |
filterParts(java.util.Collection<? extends IVisualPart<VR,? extends VR>> parts,
java.lang.Class<T> type)
Searches the given collection of
IVisualParts for elements of the
specified type. |
static <VR> java.util.List<IVisualPart<VR,? extends VR>> |
getAnchoreds(java.util.Collection<? extends IVisualPart<VR,? extends VR>> anchorages)
Collects the anchoreds of all given
IVisualParts. |
static <VR> java.util.Set<IVisualPart<VR,? extends VR>> |
getAnchoreds(IVisualPart<VR,? extends VR> anchorage,
java.lang.String role)
Collects the anchoreds of the given
IVisualPart which are
registered under the specified role. |
public static <T extends IVisualPart<VR,? extends VR>,VR> java.util.List<T> filterParts(java.util.Collection<? extends IVisualPart<VR,? extends VR>> parts, java.lang.Class<T> type)
IVisualParts for elements of the
specified type.T - The type of returned elements.VR - The visual root type.parts - The collection of parts which is filtered.type - The type of returned elements.public static <VR> java.util.List<IVisualPart<VR,? extends VR>> getAnchoreds(java.util.Collection<? extends IVisualPart<VR,? extends VR>> anchorages)
IVisualParts.VR - The visual root type.anchorages - The collection of IVisualParts for which the anchoreds
are collected.IVisualPart
s.public static <VR> java.util.Set<IVisualPart<VR,? extends VR>> getAnchoreds(IVisualPart<VR,? extends VR> anchorage, java.lang.String role)
IVisualPart which are
registered under the specified role.VR - The visual root type.anchorage - The IVisualPart for which the anchoreds are collected.role - The role under which the anchoreds have to be registered to be
collected.IVisualPart which
are registered under the specified role.Copyright (c) 2014 itemis AG and others. All rights reserved.