public class MDKValidationWindow
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.util.List<ValidationRuleViolation>> |
pooledViolations |
static java.lang.String[][] |
VALIDATION_RULE_OPTIONS |
protected java.util.List<ValidationSuite> |
vss |
Constructor and Description |
---|
MDKValidationWindow(java.util.List<ValidationSuite> vss)
Constructor.
|
MDKValidationWindow(ValidationSuite vs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptAllMMSChangesIntoMD()
Accepts the MMS version into MD for all violation types
|
java.util.Collection<java.lang.String> |
acceptSpecificMDChangesToMMSByID(java.lang.String violationType,
java.util.Collection<java.lang.String> targetIDs)
Commits the MD version to MMS for the specified violation type, if the associated element id is in the targetIDs collection
|
java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> |
acceptSpecificMMSChangesIntoMD(java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> targets)
Accepts the MMS version into MD for the all violation types, if the associated element is in the collection targets
|
void |
commitAllMDChangesToMMS()
Commits the MD version to MMS for all violation types
|
java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> |
commitSpecificMDChangesToMMS(java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> targets)
Commits the MD version to MMS for the all violation types, if the associated element is in the targets collection
|
java.util.Collection<java.lang.String> |
commitSpecificMDChangesToMMSByID(java.lang.String violationType,
java.util.Collection<java.lang.String> targetIDs)
Commits the MD version to MMS for the specified violation type, if the associated element id is in the targetIDs collection
|
java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> |
confirmElementViolation(java.lang.String validationType,
java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> targets)
Searches through the indicated list of pooled violations for elements in the passed collection
|
java.util.Collection<java.lang.String> |
confirmElementViolationByID(java.lang.String validationType,
java.util.Collection<java.lang.String> targetIDs)
Searches through the indicated list of pooled violations for the passed element IDs
|
java.util.List<ValidationRuleViolation> |
getPooledValidations(java.lang.String type)
Returns the List of ValidationRuleViolations stored in object for the
specified type
|
java.util.List<ValidationSuite> |
getValidations()
Returns the ValidationSuite(s) stored in the MDKValidationWindow object
|
void |
initializeProject() |
int |
listPooledViolations()
Display method to see sorted violations stored in object of all types
|
int |
listPooledViolations(java.lang.String type)
Display method to see sorted violations stored in object of specified type
|
protected java.util.List<ValidationSuite> vss
protected java.util.List<java.util.List<ValidationRuleViolation>> pooledViolations
public static final java.lang.String[][] VALIDATION_RULE_OPTIONS
public MDKValidationWindow(ValidationSuite vs)
vs
- validationSuite returned from a validation actionpublic MDKValidationWindow(java.util.List<ValidationSuite> vss)
vss
- List of validationSuites returned from a set of validation actionspublic java.util.List<ValidationSuite> getValidations()
public int listPooledViolations(java.lang.String type)
type
- Type of violation to listjava.lang.Exception
- Unsupported violation typepublic int listPooledViolations()
public java.util.List<ValidationRuleViolation> getPooledValidations(java.lang.String type)
public void acceptAllMMSChangesIntoMD()
public java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> acceptSpecificMMSChangesIntoMD(java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> targets)
targets
- the collection of elements whose validations are to be processedpublic java.util.Collection<java.lang.String> acceptSpecificMDChangesToMMSByID(java.lang.String violationType, java.util.Collection<java.lang.String> targetIDs)
violationType
- the type of violation to be acceptedtargetIDs
- the collection of element IDs whose validations are to be processedpublic void commitAllMDChangesToMMS()
public java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> commitSpecificMDChangesToMMS(java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> targets)
targets
- the collection of elements whose validations are to be processedClassNotFoundException,
- NoSuchMethodException, IllegalAccessException, InvocationTargetExceptionpublic java.util.Collection<java.lang.String> commitSpecificMDChangesToMMSByID(java.lang.String violationType, java.util.Collection<java.lang.String> targetIDs)
violationType
- the type of violation to be acceptedtargetIDs
- the collection of element IDs whose validations are to be processedpublic void initializeProject()
public java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> confirmElementViolation(java.lang.String validationType, java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> targets)
validationType
- Type of validation to search throughtargets
- Elements to confirm the presence of in the validationspublic java.util.Collection<java.lang.String> confirmElementViolationByID(java.lang.String validationType, java.util.Collection<java.lang.String> targetIDs)
validationType
- Type of validation to search throughtargetIDs
- Collection of strings to confirm the presence of in the validations