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

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetter<Character>
      extended by org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetterEChar

public class AttributeSetterEChar
extends AttributeSetter<Character>

Class for creating random Char values.

Author:
Eugen Neufeld, Stephan Koehler, Philip Achenbach
See Also:
AttributeSetter

Constructor Summary
AttributeSetterEChar(Random random)
          Creates a new AttributeSetter for Char attributes.
 
Method Summary
 Character createNewAttribute()
          Creates one attribute of type E.
 Collection<Character> 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

AttributeSetterEChar

public AttributeSetterEChar(Random random)
Creates a new AttributeSetter for Char attributes.

Parameters:
random - Random object used to create attribute values
Method Detail

createNewAttribute

public Character createNewAttribute()
Creates one attribute of type E. The result is determined by random.

Specified by:
createNewAttribute in class AttributeSetter<Character>
Returns:
the created attribute

createNewAttributes

public Collection<Character> createNewAttributes(int maxAmount)
Creates a collection of attributes of type E. The result is determined by random.

Specified by:
createNewAttributes in class AttributeSetter<Character>
Parameters:
maxAmount - the maximum amount of attributes to create
Returns:
all created attributes as a collection


Copyright © 2015. All Rights Reserved.