|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<ESMutatorConfigImpl,MutatorConfig> org.eclipse.emf.emfstore.internal.fuzzy.emf.api.ESMutatorConfigImpl
public class ESMutatorConfigImpl
The API implementation wrapper for MutatorConfig
.
Constructor Summary | |
---|---|
ESMutatorConfigImpl(MutatorConfig mutatorConfig)
Constructor. |
Method Summary | |
---|---|
Collection<org.eclipse.emf.ecore.EClass> |
getEClassesToIgnore()
Returns a collection of EClasses to be ignored during
object generation. |
Collection<org.eclipse.emf.ecore.EPackage> |
getEPackages()
The EPackages to used during object generation. |
Collection<org.eclipse.emf.ecore.EStructuralFeature> |
getEStructuralFeaturesToIgnore()
Returns a collection of EStructuralFeatures to be ignored during object mutation. |
Integer |
getMaxDeleteCount()
Specifies how many objects should be deleted at most? Only applies to mutation. |
int |
getMinObjectsCount()
Defines how many objects should be generated. |
int |
getMutationCount()
Specifies the exact number of mutations to be performed. |
org.eclipse.emf.ecore.EClass |
getRootEClass()
The EClass of the root. |
boolean |
isAllowDuplicateIDs()
Whether it is allowed to generate duplicate IDs. |
boolean |
isDoNotGenerateRoot()
Whether the mutator should generate objects at the root level. |
boolean |
isIgnoreAndLog()
Determines whether the mutator should ignore and log exception or whether it should fail with an exception. |
boolean |
isUseEcoreUtilDelete()
Whether delete mutations should use EcoreUtil#delete . |
Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl |
---|
equals, hashCode, toInternalAPI |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ESMutatorConfigImpl(MutatorConfig mutatorConfig)
mutatorConfig
- the internal MutatorConfig
instance to be wrappedMethod Detail |
---|
public org.eclipse.emf.ecore.EClass getRootEClass()
EClass
of the root.
getRootEClass
in interface ESMutatorConfig
EClass
of the rootESMutatorConfig.getRootEClass()
public int getMinObjectsCount()
getMinObjectsCount
in interface ESMutatorConfig
ESMutatorConfig.getMinObjectsCount()
public boolean isDoNotGenerateRoot()
isDoNotGenerateRoot
in interface ESMutatorConfig
true
, if the mutator should generate objects on the root level, false
otherwiseESMutatorConfig.isDoNotGenerateRoot()
public Collection<org.eclipse.emf.ecore.EClass> getEClassesToIgnore()
EClasses
to be ignored during
object generation.
getEClassesToIgnore
in interface ESMutatorConfig
EClasses
that are ignored during
object generationESMutatorConfig.getEClassesToIgnore()
public Collection<org.eclipse.emf.ecore.EStructuralFeature> getEStructuralFeaturesToIgnore()
EStructuralFeatures
to be ignored during object mutation.
getEStructuralFeaturesToIgnore
in interface ESMutatorConfig
EStructuralFeatures
that are ignored during object generationESMutatorConfig.getEStructuralFeaturesToIgnore()
public boolean isIgnoreAndLog()
isIgnoreAndLog
in interface ESMutatorConfig
true
, if exceptions should only be logged, false
otherwiseESMutatorConfig.isIgnoreAndLog()
public boolean isUseEcoreUtilDelete()
EcoreUtil#delete
.
Note that if this is set to true
, that might lead
to bad performance with bigger models.
isUseEcoreUtilDelete
in interface ESMutatorConfig
true
, if EcoreUtil#delete
should be
used to perform delete mutation, false
otherwiseESMutatorConfig.isUseEcoreUtilDelete()
public Integer getMaxDeleteCount()
getMaxDeleteCount
in interface ESMutatorConfig
ESMutatorConfig.getMaxDeleteCount()
public Collection<org.eclipse.emf.ecore.EPackage> getEPackages()
EClasses
contained in these packages are
considered to used for instantiating objects.
getEPackages
in interface ESMutatorConfig
EClasses
that is considered
during object generationESMutatorConfig.getEPackages()
public boolean isAllowDuplicateIDs()
isAllowDuplicateIDs
in interface ESMutatorConfig
true
, if duplicate IDs should be allowed, false
otherwiseESMutatorConfig.isAllowDuplicateIDs()
public int getMutationCount()
getMutationCount
in interface ESMutatorConfig
ESMutatorConfig.getMutationCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |