Class Views
java.lang.Object
com.dassault_systemes.modeler.sysml.model.Views
Utility class providing helper methods for working with Views
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<Expression> getViewCondition(Type type) Returns the view condition expressions associated with the given type.static RenderingUsagegetViewRendering(Type type) Returns the view rendering associated with the given type.static booleanChecks whether the owning type of the feature is a rendering usage or definition.static booleanisOwningTypeViewUsageOrDefinition(Feature feature) Checks whether the owning type of the feature is a view usage or definition.static booleanisRenderingUsageOrDefinition(Element element) Checks whether the element is aRenderingUsageorRenderingDefinition.static booleanisViewpointUsageOrDefinition(Element element) Checks whether the element is aViewpointUsageorViewpointDefinition.static booleanisViewRendering(FeatureMembership membership) Checks whether the membership represents a view rendering.static booleanisViewUsageOrDefinition(Element element) Checks whether the element is aViewUsageorViewDefinition.static booleanisViewUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents aViewUsageorViewDefinition.
-
Constructor Details
-
Views
public Views()
-
-
Method Details
-
isViewUsageOrDefinition
Checks whether the element is aViewUsageorViewDefinition.- Parameters:
element- the element to check- Returns:
- true if the element is a view usage or definition
-
isViewUsageOrDefinition
public static boolean isViewUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents aViewUsageorViewDefinition.- Parameters:
eClass- the class to check- Returns:
- true if the class is a view usage or definition
-
isOwningTypeViewUsageOrDefinition
Checks whether the owning type of the feature is a view usage or definition.- Parameters:
feature- the feature- Returns:
- true if the owning type is a view usage or definition
-
isViewpointUsageOrDefinition
Checks whether the element is aViewpointUsageorViewpointDefinition.- Parameters:
element- the element to check- Returns:
- true if the element is a viewpoint usage or definition
-
isRenderingUsageOrDefinition
Checks whether the element is aRenderingUsageorRenderingDefinition.- Parameters:
element- the element to check- Returns:
- true if the element is a rendering usage or definition
-
isOwningTypeRenderingUsageOrDefinition
Checks whether the owning type of the feature is a rendering usage or definition.- Parameters:
feature- the feature- Returns:
- true if the owning type is a rendering usage or definition
-
getViewRendering
Returns the view rendering associated with the given type.- Parameters:
type- the type- Returns:
- rendering usage, or null if none exists
-
isViewRendering
Checks whether the membership represents a view rendering.- Parameters:
membership- the membership to check- Returns:
- true if the membership is a
ViewRenderingMembership
-
getViewCondition
Returns the view condition expressions associated with the given type. View conditions may be defined on both view usages and view definitions.- Parameters:
type- the type- Returns:
- list of view condition expressions, or an empty list if none exist
-