public interface IConstraintSpecification
A constraint specification represents a well-formedness or structural validation rule that is specified with concepts from metamodels and can be evaluated over instance models. E.g. a constraint specification is "A terminated data port cannot be the end of a port connection", where "terminated", "data port", "port connection" and "connection end" are concepts in the metamodel.
The constraint specification contains:
When constraint specifications are represented by VIATRA Query patterns, the corresponding query specification is stored.
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getKeyNames()
Returns the key parameter names of the constraint specification.
|
java.util.Map<java.lang.String,java.lang.Object> |
getKeyObjects(IPatternMatch signature)
Returns the key objects (parameter names with the corresponding EObject objects) of a violation for the given
pattern match.
|
java.lang.String |
getMessageFormat()
Returns the format message of the constraint specification to compose the corresponding message for a particular
violation of the constraint.
|
java.util.List<java.lang.String> |
getPropertyNames()
Returns the property parameter names of the constraint specification.
|
IQuerySpecification<? extends ViatraQueryMatcher<? extends IPatternMatch>> |
getQuerySpecification()
Returns the VIATRA Query-specific query specification of the constraint specification.
|
Severity |
getSeverity()
Returns the severity of the violations corresponding to the constraint specified by the constraint specification.
|
java.util.Set<java.util.List<java.lang.String>> |
getSymmetricKeyNames()
Returns the lists of symmetric key parameter names, where the permutation of the same objects for the parameters
count as the same key, thus the same violation.
|
java.util.Set<java.util.List<java.lang.String>> |
getSymmetricPropertyNames()
Returns the lists symmetric parameter names, where the permutation of the same objects for the parameters count
as the same match.
|
java.lang.String getMessageFormat()
java.util.Map<java.lang.String,java.lang.Object> getKeyObjects(IPatternMatch signature)
signature
- The pattern match for which the key objects should be retrieved.java.util.List<java.lang.String> getKeyNames()
java.util.List<java.lang.String> getPropertyNames()
Severity getSeverity()
java.util.Set<java.util.List<java.lang.String>> getSymmetricPropertyNames()
java.util.Set<java.util.List<java.lang.String>> getSymmetricKeyNames()
IQuerySpecification<? extends ViatraQueryMatcher<? extends IPatternMatch>> getQuerySpecification()