public final class HeadlessValidation
extends java.lang.Object
implements org.eclipse.equinox.app.IApplication
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
run(org.eclipse.uml2.uml.Model metaModel,
org.eclipse.uml2.uml.Element element,
java.io.PrintWriter out,
java.io.PrintStream statusOut)
Validates an element and its contents against a specified meta-model and
prints the result.
|
java.lang.Object |
start(org.eclipse.equinox.app.IApplicationContext context) |
void |
stop()
This method does not do anything
|
static void |
validateModelFiles(java.lang.String modelFileName,
java.lang.String metaModelFileName,
java.lang.String inputFileName,
java.lang.String outputFileName,
java.io.PrintStream statusOutput,
java.lang.String format,
boolean verbose)
Validates one or several provided model files against provided metamodels.
|
public java.lang.Object start(org.eclipse.equinox.app.IApplicationContext context)
throws java.lang.Exception
start in interface org.eclipse.equinox.app.IApplicationjava.lang.Exceptionpublic static void validateModelFiles(java.lang.String modelFileName,
java.lang.String metaModelFileName,
java.lang.String inputFileName,
java.lang.String outputFileName,
java.io.PrintStream statusOutput,
java.lang.String format,
boolean verbose)
modelFileName - The file path to the model to be validated. This is only used if inputFileName is empty.metaModelFileName - the file path to the metamodel to be used for validation. This is only used if inputFileName is empty.inputFileName, - a file that is expected to contain a semicolon-separated list of model file paths and metamodel file paths to be validated.outputFileName, - the file path to the output file of the validation where all violations will be reportedstatusOutput, - the file path to the file where the status of the validation process will be reported, if status is ok, the file will be emptyformat - the output format to be used. Valid formats are "csv_summary", "csv" or "csv_full".verbose - a boolean indicating if the output should be verbose or not.public void stop()
stop in interface org.eclipse.equinox.app.IApplicationpublic static java.lang.String run(org.eclipse.uml2.uml.Model metaModel,
org.eclipse.uml2.uml.Element element,
java.io.PrintWriter out,
java.io.PrintStream statusOut)
metaModel - the UML-representation of meta model to be used for validationelement - the root UML-element that the validation should start fromout - the print writer object that the result should be printed tostatusOut - a stream for status messages.