Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
af3
kernel
Commits
dbc6d21d
Commit
dbc6d21d
authored
8 years ago
by
Vincent Aravantinos
Browse files
Options
Downloads
Patches
Plain Diff
adds cancel and getID
refs 2553
parent
8889beda
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/extension/IConstraintVerifier.java
+18
-6
18 additions, 6 deletions
...fortiss/tooling/kernel/extension/IConstraintVerifier.java
with
18 additions
and
6 deletions
org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/extension/IConstraintVerifier.java
+
18
−
6
View file @
dbc6d21d
...
...
@@ -20,11 +20,10 @@ package org.fortiss.tooling.kernel.extension;
import
java.util.List
;
import
org.eclipse.emf.ecore.EObject
;
import
org.fortiss.tooling.kernel.model.constraints.
I
Constraint
;
import
org.fortiss.tooling.kernel.model.constraints.Constraint
;
import
org.fortiss.tooling.kernel.model.constraints.IConstraintVerificationStatus
;
import
org.fortiss.tooling.kernel.service.IConstraintVerificationService
;
import
org.fortiss.tooling.kernel.service.IConstraintVerificationService.IFix
;
import
org.fortiss.tooling.kernel.service.base.IEObjectAware
;
/**
* Interface for constraint verifiers used by {@link IConstraintVerificationService}.
...
...
@@ -32,11 +31,18 @@ import org.fortiss.tooling.kernel.service.base.IEObjectAware;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash:
DFB6916E77403642EA76763DB660543A
* @ConQAT.Rating YELLOW Hash:
98834BA99C412D6510C7C437C2047256
*/
public
interface
IConstraintVerifier
<
T
extends
IConstraint
>
extends
IEObjectAware
<
T
>
{
public
interface
IConstraintVerifier
{
/**
* Returns the unique identifier of this constraint. Should match the corresponding
* IConstraintVerifierUI!
*/
String
getID
();
/** Verify the given constraint. */
void
verify
(
T
constraint
);
void
verify
(
Constraint
constraint
);
/**
* @param obj
...
...
@@ -49,5 +55,11 @@ public interface IConstraintVerifier<T extends IConstraint> extends IEObjectAwar
* Returns a list of possible automatic fixes for the given constraint. A constraint should be
* candidate to fixing if it is anything but successful or outdated.
*/
List
<
IFix
>
fixes
(
T
constraint
,
IConstraintVerificationStatus
status
);
List
<
IFix
>
fixes
(
Constraint
constraint
,
IConstraintVerificationStatus
status
);
/**
* @param constraint
* Cancels the last verification of <code>constraint</code>.
*/
void
cancel
(
Constraint
constraint
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment