|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.server.startup.EmfStoreValidator
public class EmfStoreValidator
Validates the serverspace in three different ways. First it resolves all proxies, then checks whether all ME have ids and it is checked whether the changes generate the corret projectstate.
Field Summary | |
---|---|
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 Summary | |
---|---|
EmfStoreValidator(ServerSpace serverSpace)
Default constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RESOLVEALL
EcoreUtil.resolveAll(org.eclipse.emf.ecore.EObject)
public static final int MODELELEMENTID
public static final int PROJECTGENERATION
Constructor Detail |
---|
public EmfStoreValidator(ServerSpace serverSpace)
serverSpace
- serverspaceMethod Detail |
---|
public 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 failes
FatalESException
- in case of failurepublic void validate(int options) throws FatalESException
RESOLVEALL
,
MODELELEMENTID
and PROJECTGENERATION
.
options
- options
FatalESException
- in case of failurepublic void setExcludedProjects(List<String> excludedProjects)
RESOLVEALL
.
excludedProjects
- list of project id as string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |