public class ESMutatorConfigImpl extends AbstractAPIImpl<ESMutatorConfigImpl,MutatorConfig> implements ESMutatorConfig
MutatorConfig.| Constructor and Description |
|---|
ESMutatorConfigImpl(MutatorConfig mutatorConfig)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
equals, hashCode, toInternalAPIpublic ESMutatorConfigImpl(MutatorConfig mutatorConfig)
mutatorConfig - the internal MutatorConfig instance to be wrappedpublic 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()Copyright © 2017. All rights reserved.