@OpenApiAll
public class ValidationRunData
extends java.lang.Object
Constructor and Description |
---|
ValidationRunData(boolean wholeProject,
java.util.Collection<Package> suites,
java.util.Collection<Element> elements,
EnumerationLiteral severity)
Validation data for suites execution.
|
ValidationRunData(java.util.Collection<Constraint> constraints,
java.lang.String name,
boolean wholeProject,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity,
boolean excludeReadOnly)
Validation data for specific constraints.
|
ValidationRunData(java.util.Collection<Package> suites,
com.nomagic.magicdraw.validation.Scope scope,
EnumerationLiteral severity)
Constructs validation run data.
|
ValidationRunData(Package suite,
boolean wholeProject,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity)
Validation data for whole suite execution.
|
ValidationRunData(Package suite,
boolean wholeProject,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity,
boolean excludeReadOnly) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Constraint> |
getConstraints()
Validation constraints
|
java.lang.String |
getCustomSuccessMessage() |
java.util.Collection<Element> |
getElements()
The selected elements to run validation on.
|
java.util.Collection<Constraint> |
getIgnoredConstraints() |
java.lang.String |
getName()
Gets name of the suite.
|
Project |
getProject()
Get project where the validation data is located.
|
com.nomagic.magicdraw.validation.Scope |
getScope()
Gets validation scope.
|
EnumerationLiteral |
getSeverity()
Minimum validation severity level.
|
Package |
getSuite()
Deprecated.
use
getSuites() |
java.util.Collection<Package> |
getSuites()
Gets suits to be used in validation.
|
boolean |
isAddElementsRecursively()
Should validation engine add scope elements recursively, or should it validate only provided scope.
|
boolean |
isEnableSettingsDialog() |
boolean |
isExcludeReadOnly() |
boolean |
isTrackActiveDiagrams() |
boolean |
isWholeProject()
Validation is run on whole project
|
void |
setAddElementsRecursively(boolean addElementsRecursively)
Should validation engine add scope elements recursively, or should it validate only provided scope.
|
void |
setCustomSuccessMessage(java.lang.String customSuccessMessage)
Set custom validation result message.
|
void |
setEnableSettingsDialog(boolean enableSettingsDialog)
Disable "Run validation with a new settings" button in the validation results window.
|
void |
setExcludeReadOnly(boolean excludeReadOnly) |
void |
setIgnoredConstraints(java.util.Collection<Constraint> ignoredConstraints) |
void |
setTrackActiveDiagrams(boolean trackActiveDiagrams) |
public ValidationRunData(boolean wholeProject, java.util.Collection<Package> suites, @CheckForNull java.util.Collection<Element> elements, @CheckForNull EnumerationLiteral severity)
wholeProject
- If true
- all elements are included.suites
- suites to executeelements
- If wholeProject
is false
, then execute only on those elementsseverity
- severity levelpublic ValidationRunData(@CheckForNull Package suite, boolean wholeProject, @CheckForNull java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity)
suite
- suite to executewholeProject
- If true
- all elements are included.elements
- If wholeProject
is false
, then execute only on those elementsseverity
- severity levelpublic ValidationRunData(@CheckForNull Package suite, boolean wholeProject, @CheckForNull java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity, boolean excludeReadOnly)
suite
- to execute.wholeProject
- if true all elements are included.elements
- if wholeProject is false, then execute only on those elements.severity
- level.excludeReadOnly
- elements from execution?public ValidationRunData(java.util.Collection<Package> suites, com.nomagic.magicdraw.validation.Scope scope, EnumerationLiteral severity)
suites
- suites from which to take constraints.scope
- scope to validate.severity
- validation severity level.public ValidationRunData(@Nonnull java.util.Collection<Constraint> constraints, java.lang.String name, boolean wholeProject, @CheckForNull java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity, boolean excludeReadOnly)
constraints
- constraints to runname
- name for rule collection (like suite name)wholeProject
- If true
- all elements are included.elements
- If wholeProject
is false
, then execute only on those elementsseverity
- severity levelexcludeReadOnly
- exclude readonly elements from execution (dialog setting)public boolean isEnableSettingsDialog()
public void setEnableSettingsDialog(boolean enableSettingsDialog)
enableSettingsDialog
- valuepublic void setCustomSuccessMessage(java.lang.String customSuccessMessage)
customSuccessMessage
- Message textpublic java.lang.String getCustomSuccessMessage()
public void setExcludeReadOnly(boolean excludeReadOnly)
public boolean isExcludeReadOnly()
public java.lang.String getName()
@Deprecated @CheckForNull public Package getSuite()
getSuites()
public java.util.Collection<Package> getSuites()
public java.util.Collection<Element> getElements()
public EnumerationLiteral getSeverity()
public java.util.Collection<Constraint> getConstraints()
public boolean isWholeProject()
public Project getProject()
null
if no suite or constraints specified.public boolean isAddElementsRecursively()
true
public void setAddElementsRecursively(boolean addElementsRecursively)
true
addElementsRecursively
- true if elements should be added recursivelypublic com.nomagic.magicdraw.validation.Scope getScope()
public void setIgnoredConstraints(java.util.Collection<Constraint> ignoredConstraints)
public java.util.Collection<Constraint> getIgnoredConstraints()
public boolean isTrackActiveDiagrams()
public void setTrackActiveDiagrams(boolean trackActiveDiagrams)