@OpenApiAll
public class ValidationResult
extends java.lang.Object
Constructor and Description |
---|
ValidationResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAbbreviation()
Gets abbreviation.
|
com.nomagic.magicdraw.annotation.Annotation |
getAnnotation()
Returns
Annotation of violation. |
com.nomagic.magicdraw.core.Project |
getConstrainedProject()
Returns project of the violated constraint
|
com.nomagic.magicdraw.uml.BaseElement |
getElement()
Gets element.
|
boolean |
getIsIgnored()
Checks if this violation result is ignored by user.
|
boolean |
getIsSystemValidationResult()
If true validation result came from system rule, else false.
|
java.lang.String |
getMessage()
Gets message.
|
java.lang.Object |
getParentObject()
Returns parent object that should be used for grouping the results.
|
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Constraint |
getParentRule()
Returns parent rule if such is specified.
|
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Constraint |
getRule()
Returns violated rule.
|
java.lang.String |
getSeverity()
Gets severity.
|
java.lang.Object |
getTargetObject()
Returns target object of the rule violation result.
|
boolean |
isIgnored()
Checks if this violation result is ignored by user.
|
boolean |
isSystemValidationResult()
If true validation result came from system rule, else false.
|
void |
setAbbreviation(java.lang.String abbreviation)
Sets abbreviation.
|
void |
setAnnotation(com.nomagic.magicdraw.annotation.Annotation annotation)
Set
Annotation of violation. |
void |
setConstrainedProject(com.nomagic.magicdraw.core.Project constrainedProject)
Set project of the violated constraint
|
void |
setElement(com.nomagic.magicdraw.uml.BaseElement baseElement)
Sets element.
|
void |
setIgnored(boolean isIgnored)
Set if this violation result is ignored by user.
|
void |
setMessage(java.lang.String message)
Sets message.
|
void |
setParentObject(java.lang.Object parentObject)
set parent object that should be used for grouping the results.
|
void |
setParentRule(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Constraint parentRule)
Set parent rule if such is specified.
|
void |
setRule(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Constraint rule)
Set violated rule.
|
void |
setSeverity(java.lang.String severity)
Sets severity.
|
void |
setSystemValidationResult(boolean isSystemValidationResult)
Set If true validation result came from system rule.
|
void |
setTargetObject(java.lang.Object targetObject)
Set target object of the rule violation result.
|
java.lang.String |
toString() |
public com.nomagic.magicdraw.uml.BaseElement getElement()
public void setElement(com.nomagic.magicdraw.uml.BaseElement baseElement)
baseElement
- the element to setpublic java.lang.String getSeverity()
public void setSeverity(java.lang.String severity)
severity
- the severity to setpublic java.lang.String getAbbreviation()
public void setAbbreviation(java.lang.String abbreviation)
abbreviation
- the abbreviation to setpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the message to setpublic com.nomagic.magicdraw.annotation.Annotation getAnnotation()
Annotation
of violation.public void setAnnotation(com.nomagic.magicdraw.annotation.Annotation annotation)
Annotation
of violation.an
- annotation of violation.public com.nomagic.magicdraw.core.Project getConstrainedProject()
public void setConstrainedProject(com.nomagic.magicdraw.core.Project constrainedProject)
constrainedProject
- project of the violated constraintpublic java.lang.Object getParentObject()
public void setParentObject(java.lang.Object parentObject)
parentObject
- parent object that should be used for grouping the resultspublic com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Constraint getParentRule()
public void setParentRule(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Constraint parentRule)
parentRule
- parent rule if such is specifiedpublic com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Constraint getRule()
public void setRule(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Constraint rule)
rule
- violated rulepublic java.lang.Object getTargetObject()
public void setTargetObject(java.lang.Object targetObject)
targetObject
- target object of the rule violation resultpublic boolean isIgnored()
public boolean getIsIgnored()
public void setIgnored(boolean isIgnored)
isIgnored
- true if this violation result is ignored by user, else falsepublic boolean getIsSystemValidationResult()
public boolean isSystemValidationResult()
public void setSystemValidationResult(boolean isSystemValidationResult)
isSystemValidationResult
- true if validation result came from system rule, else false.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 - No Magic Asia