org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute
Class AttributeSetterEEnum
java.lang.Object
org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetter<org.eclipse.emf.common.util.Enumerator>
org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetterEEnum
public class AttributeSetterEEnum
- extends AttributeSetter<org.eclipse.emf.common.util.Enumerator>
Class for creating random Enumerator values.
- Author:
- Eugen Neufeld, Stephan Koehler, Philip Achenbach
- See Also:
AttributeSetter
|
Constructor Summary |
AttributeSetterEEnum(org.eclipse.emf.ecore.EEnum eEnum,
Random random)
Creates a new AttributeSetter for Enumerator attributes. |
|
Method Summary |
org.eclipse.emf.common.util.Enumerator |
createNewAttribute()
Creates one attribute of type E. |
Collection<org.eclipse.emf.common.util.Enumerator> |
createNewAttributes(int maxAmount)
Creates a collection of attributes of type E. |
AttributeSetterEEnum
public AttributeSetterEEnum(org.eclipse.emf.ecore.EEnum eEnum,
Random random)
- Creates a new AttributeSetter for Enumerator attributes.
- Parameters:
eEnum - the EEnum this attribute setter will create Enumerators forrandom - Random object used to create attribute values
createNewAttribute
public org.eclipse.emf.common.util.Enumerator createNewAttribute()
- Creates one attribute of type
E.
The result is determined by random.
- Specified by:
createNewAttribute in class AttributeSetter<org.eclipse.emf.common.util.Enumerator>
- Returns:
- the created attribute
createNewAttributes
public Collection<org.eclipse.emf.common.util.Enumerator> createNewAttributes(int maxAmount)
- Creates a collection of attributes of type
E.
The result is determined by random.
- Specified by:
createNewAttributes in class AttributeSetter<org.eclipse.emf.common.util.Enumerator>
- Parameters:
maxAmount - the maximum amount of attributes to create
- Returns:
- all created attributes as a collection
Copyright © 2015. All Rights Reserved.