|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 wrapped| Method Detail |
|---|
public org.eclipse.emf.ecore.EClass getRootEClass()
EClass of the root.
getRootEClass in interface ESMutatorConfigEClass of the rootESMutatorConfig.getRootEClass()public int getMinObjectsCount()
getMinObjectsCount in interface ESMutatorConfigESMutatorConfig.getMinObjectsCount()public boolean isDoNotGenerateRoot()
isDoNotGenerateRoot in interface ESMutatorConfigtrue, 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 ESMutatorConfigEClasses 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 ESMutatorConfigEStructuralFeatures that are ignored during object generationESMutatorConfig.getEStructuralFeaturesToIgnore()public boolean isIgnoreAndLog()
isIgnoreAndLog in interface ESMutatorConfigtrue, 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 ESMutatorConfigtrue, if EcoreUtil#delete should be
used to perform delete mutation, false otherwiseESMutatorConfig.isUseEcoreUtilDelete()public Integer getMaxDeleteCount()
getMaxDeleteCount in interface ESMutatorConfigESMutatorConfig.getMaxDeleteCount()public Collection<org.eclipse.emf.ecore.EPackage> getEPackages()
EClasses contained in these packages are
considered to used for instantiating objects.
getEPackages in interface ESMutatorConfigEClasses that is considered
during object generationESMutatorConfig.getEPackages()public boolean isAllowDuplicateIDs()
isAllowDuplicateIDs in interface ESMutatorConfigtrue, if duplicate IDs should be allowed, false otherwiseESMutatorConfig.isAllowDuplicateIDs()public int getMutationCount()
getMutationCount in interface ESMutatorConfigESMutatorConfig.getMutationCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||