org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute
Class AttributeSetterEEnum

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetter<org.eclipse.emf.common.util.Enumerator>
      extended by 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.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetter
getRandom
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 for
random - Random object used to create attribute values
Method Detail

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.