public class ConstraintSpecification extends java.lang.Object implements IConstraintSpecification
Modifier and Type | Class and Description |
---|---|
static class |
ConstraintSpecification.ConstraintSpecificationBuilder
Static builder class provided to construct ConstraintSpecification instances.
|
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(org.eclipse.viatra.query.runtime.api.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.
|
org.eclipse.viatra.query.runtime.api.IQuerySpecification<? extends org.eclipse.viatra.query.runtime.api.ViatraQueryMatcher<? extends org.eclipse.viatra.query.runtime.api.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.
|
public java.lang.String getMessageFormat()
IConstraintSpecification
getMessageFormat
in interface IConstraintSpecification
public java.util.Map<java.lang.String,java.lang.Object> getKeyObjects(org.eclipse.viatra.query.runtime.api.IPatternMatch signature)
IConstraintSpecification
getKeyObjects
in interface IConstraintSpecification
signature
- The pattern match for which the key objects should be retrieved.public java.util.List<java.lang.String> getKeyNames()
IConstraintSpecification
getKeyNames
in interface IConstraintSpecification
public java.util.List<java.lang.String> getPropertyNames()
IConstraintSpecification
getPropertyNames
in interface IConstraintSpecification
public Severity getSeverity()
IConstraintSpecification
getSeverity
in interface IConstraintSpecification
public java.util.Set<java.util.List<java.lang.String>> getSymmetricPropertyNames()
IConstraintSpecification
getSymmetricPropertyNames
in interface IConstraintSpecification
public java.util.Set<java.util.List<java.lang.String>> getSymmetricKeyNames()
IConstraintSpecification
getSymmetricKeyNames
in interface IConstraintSpecification
public org.eclipse.viatra.query.runtime.api.IQuerySpecification<? extends org.eclipse.viatra.query.runtime.api.ViatraQueryMatcher<? extends org.eclipse.viatra.query.runtime.api.IPatternMatch>> getQuerySpecification()
IConstraintSpecification
getQuerySpecification
in interface IConstraintSpecification