public class EmfStoreValidator extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MODELELEMENTID
Option for checking all modelelement ids in projecstate and changes.
|
static int |
PROJECTGENERATION
Option for the change test.
|
static int |
RESOLVEALL
Option for resolving all proxies.
|
| Constructor and Description |
|---|
EmfStoreValidator(ServerSpace serverSpace)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setExcludedProjects(List<String> excludedProjects)
Allows to exclude projects from validation aside from
RESOLVEALL. |
void |
validate(int options)
Runs the validation.
|
void |
validate(int options,
boolean throwException)
Runs the validation.
|
public static final int RESOLVEALL
EcoreUtil.resolveAll(org.eclipse.emf.ecore.EObject)public static final int MODELELEMENTID
public static final int PROJECTGENERATION
public EmfStoreValidator(ServerSpace serverSpace)
serverSpace - serverspacepublic void validate(int options,
boolean throwException)
throws FatalESException
RESOLVEALL,
MODELELEMENTID and PROJECTGENERATION.options - optionsthrowException - allows you to prevent that an exception is thrown if validation failesFatalESException - in case of failurepublic void validate(int options)
throws FatalESException
RESOLVEALL,
MODELELEMENTID and PROJECTGENERATION.options - optionsFatalESException - in case of failurepublic void setExcludedProjects(List<String> excludedProjects)
RESOLVEALL.excludedProjects - list of project id as stringCopyright © 2017. All rights reserved.