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

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

public class AttributeSetterEString
extends AttributeSetter<String>

Class for creating random String values.

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

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

AttributeSetterEString

public AttributeSetterEString(Random random)
Creates a new AttributeSetter for String attributes.

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

createNewAttribute

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

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

createNewAttributes

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

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


Copyright © 2015. All Rights Reserved.