Package com._1c.g5.v8.dt.cai.model.util
Class CaiModelUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.cai.model.util.CaiModelUtil
-
public final class CaiModelUtil extends Object
Util for model of Client Application Interface
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CaiGroup
createCaiGroup()
Create group of Client Application Interface with random uuidstatic CaiPanel
createCaiPanel(CaiPanelInfo panelInfo)
Create panel of Client Application Interface with random uuid by given panel infostatic ClientApplicationInterface
getClientApplicationInterface(CaiAbstractItem item)
Get parentClientApplicationInterface
for given itemstatic Set<CaiPanelInfo>
getContainedPanelInfos(ClientApplicationInterface clientApplicationInterface)
Set of all panel infos contained inClientApplicationInterface
static Set<CaiPanelInfo>
getContainedPanelInfos(Collection<? extends CaiAbstractItem> side)
Set of all panel infos contained in given collectionstatic List<CaiPanel>
getContainedPanels(ClientApplicationInterface clientApplicationInterface)
List of all panels contained inClientApplicationInterface
static List<CaiPanel>
getContainedPanels(Collection<? extends CaiAbstractItem> side)
List of all panels contained in given collectionstatic org.eclipse.emf.ecore.EStructuralFeature
getDirectionFeature(CaiAbstractItem item)
Get direction feature of Client Application Interface containing given item
-
-
-
Method Detail
-
createCaiPanel
public static CaiPanel createCaiPanel(CaiPanelInfo panelInfo)
Create panel of Client Application Interface with random uuid by given panel info- Parameters:
panelInfo
- the new panel basic information, cannot benull
- Returns:
- new instance of
CaiPanel
, nevernull
-
createCaiGroup
public static CaiGroup createCaiGroup()
Create group of Client Application Interface with random uuid- Returns:
- new instance of
CaiGroup
, nevernull
-
getContainedPanelInfos
public static Set<CaiPanelInfo> getContainedPanelInfos(ClientApplicationInterface clientApplicationInterface)
Set of all panel infos contained inClientApplicationInterface
- Parameters:
clientApplicationInterface
- theClientApplicationInterface
contains panels, cannot benull
- Returns:
- set of
CaiPanelInfo
, nevernull
-
getContainedPanelInfos
public static Set<CaiPanelInfo> getContainedPanelInfos(Collection<? extends CaiAbstractItem> side)
Set of all panel infos contained in given collection- Parameters:
side
- the collection contains panels, cannot benull
- Returns:
- set of
CaiPanelInfo
, nevernull
-
getContainedPanels
public static List<CaiPanel> getContainedPanels(ClientApplicationInterface clientApplicationInterface)
List of all panels contained inClientApplicationInterface
- Parameters:
clientApplicationInterface
- theClientApplicationInterface
contains panels, cannot benull
- Returns:
- list of
CaiPanel
, nevernull
-
getContainedPanels
public static List<CaiPanel> getContainedPanels(Collection<? extends CaiAbstractItem> side)
List of all panels contained in given collection- Parameters:
side
- the collection contains panels, cannot benull
- Returns:
- list of
CaiPanel
, nevernull
-
getClientApplicationInterface
public static ClientApplicationInterface getClientApplicationInterface(CaiAbstractItem item)
Get parentClientApplicationInterface
for given item- Parameters:
item
- the client application interface item, cannot benull
- Returns:
- parent
ClientApplicationInterface
ornull
if given item not contains in anyClientApplicationInterface
-
getDirectionFeature
public static org.eclipse.emf.ecore.EStructuralFeature getDirectionFeature(CaiAbstractItem item)
Get direction feature of Client Application Interface containing given item- Parameters:
item
- the client application interface item, cannot benull
- Returns:
- one of Client Application Interface direction feature (
top
,bottom
,left
,right
), ornull
-
-