@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)
Deprecated.
confusing constructor that allows both providing scope elements and setting wholeProject to true. Use another constructor
|
ValidationRunData(java.util.Collection<Constraint> constraints,
java.lang.String name,
boolean wholeProject,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity)
Deprecated.
confusing constructor that allows both providing scope elements and setting wholeProject to true. Use another constructor
|
ValidationRunData(java.util.Collection<Constraint> constraints,
java.lang.String name,
boolean wholeProject,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity,
boolean excludeReadOnly)
Deprecated.
confusing constructor that allows both providing scope elements and setting wholeProject to true. Use another constructor
|
ValidationRunData(java.util.Collection<Constraint> constraints,
java.lang.String name,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity)
Validation data for specific constraints.
|
ValidationRunData(java.util.Collection<Constraint> constraints,
java.lang.String name,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity,
boolean excludeReadOnly)
Validation data for specific constraints.
|
ValidationRunData(java.util.Collection<Constraint> constraints,
java.lang.String name,
EnumerationLiteral severity)
Validation data for specific constraints on the whole project scope
|
ValidationRunData(java.util.Collection<Constraint> constraints,
java.lang.String name,
EnumerationLiteral severity,
boolean excludeReadOnly)
Validation data for specific constraints on the whole project scope
|
ValidationRunData(java.util.Collection<Package> suites,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity) |
ValidationRunData(java.util.Collection<Package> suites,
EnumerationLiteral severity)
Validation data for specific constraints on the whole project scope
|
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)
Deprecated.
confusing constructor that allows both providing scope elements and setting wholeProject to true. Use another constructor
|
ValidationRunData(Package suite,
boolean wholeProject,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity,
boolean excludeReadOnly)
Deprecated.
confusing constructor that allows both providing scope elements and setting wholeProject to true. Use another constructor
|
ValidationRunData(Package suite,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity) |
ValidationRunData(Package suite,
java.util.Collection<? extends Element> elements,
EnumerationLiteral severity,
boolean excludeReadOnly) |
ValidationRunData(Package suite,
EnumerationLiteral severity)
Validation data for specific constraints on the whole project scope
|
ValidationRunData(Package suite,
EnumerationLiteral severity,
boolean excludeReadOnly)
Validation data for specific constraints on the whole project scope
|
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(java.util.Collection<Package> suites, java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity)
suites
- suites to execute.elements
- elements to validate. Their children recursively will also be validated unless setAddElementsRecursively(boolean)
is called with false parameterseverity
- minimum severity levelpublic ValidationRunData(java.util.Collection<Package> suites, @CheckForNull EnumerationLiteral severity)
suites
- suites to execute.severity
- minimum severity levelpublic ValidationRunData(Package suite, @CheckForNull EnumerationLiteral severity)
suite
- suite to execute.severity
- minimum severity levelpublic ValidationRunData(Package suite, @CheckForNull EnumerationLiteral severity, boolean excludeReadOnly)
suite
- suite to execute.severity
- minimum severity levelexcludeReadOnly
- exclude readonly elements from executionpublic ValidationRunData(Package suite, java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity)
suite
- suite to execute.elements
- elements to validate. Their children recursively will also be validated unless setAddElementsRecursively(boolean)
is called with false parameterseverity
- minimum severity levelpublic ValidationRunData(Package suite, java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity, boolean excludeReadOnly)
suite
- suite to execute.elements
- elements to validate. Their children recursively will also be validated unless setAddElementsRecursively(boolean)
is called with false parameterseverity
- minimum severity levelexcludeReadOnly
- exclude readonly elements from execution@Deprecated public ValidationRunData(Package suite, boolean wholeProject, @CheckForNull java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity)
@Deprecated public ValidationRunData(Package suite, boolean wholeProject, @CheckForNull java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity, boolean excludeReadOnly)
@Deprecated public ValidationRunData(boolean wholeProject, java.util.Collection<Package> suites, @CheckForNull java.util.Collection<Element> elements, @CheckForNull EnumerationLiteral severity)
public ValidationRunData(java.util.Collection<Package> suites, com.nomagic.magicdraw.validation.Scope scope, @CheckForNull EnumerationLiteral severity)
suites
- suites from which to take constraints.scope
- scope to validate.severity
- minimum severity level.public ValidationRunData(java.util.Collection<Constraint> constraints, java.lang.String name, java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity)
constraints
- constraints to runname
- name for rule collection (like suite name)elements
- elements to validate. Their children recursively will also be validated unless setAddElementsRecursively(boolean)
is called with false parameterseverity
- minimum severity levelpublic ValidationRunData(java.util.Collection<Constraint> constraints, java.lang.String name, java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity, boolean excludeReadOnly)
constraints
- constraints to runname
- name for rule collection (like suite name)elements
- elements to validateseverity
- minimum severity levelexcludeReadOnly
- exclude readonly elements from executionpublic ValidationRunData(java.util.Collection<Constraint> constraints, java.lang.String name, @CheckForNull EnumerationLiteral severity)
constraints
- constraints to runname
- name for rule collection (like suite name)severity
- minimum severity levelpublic ValidationRunData(java.util.Collection<Constraint> constraints, java.lang.String name, @CheckForNull EnumerationLiteral severity, boolean excludeReadOnly)
constraints
- constraints to runname
- name for rule collection (like suite name)severity
- minimum severity levelexcludeReadOnly
- exclude readonly elements from execution@Deprecated public ValidationRunData(java.util.Collection<Constraint> constraints, java.lang.String name, boolean wholeProject, @CheckForNull java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity)
@Deprecated public ValidationRunData(java.util.Collection<Constraint> constraints, java.lang.String name, boolean wholeProject, @CheckForNull java.util.Collection<? extends Element> elements, @CheckForNull EnumerationLiteral severity, boolean excludeReadOnly)
public void setEnableSettingsDialog(boolean enableSettingsDialog)
enableSettingsDialog
- valuepublic boolean isEnableSettingsDialog()
public 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()
@CheckForNull 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)