|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetter<E>
E
- the attribute type of the attributes to createpublic abstract class AttributeSetter<E>
Abstract class that defines methods for creating attributes in order to generate or change Ecore models. Attributes are created using a Random object.
Constructor Summary | |
---|---|
AttributeSetter(Random random)
The construction of the AttributeSetter with Random object. |
Method Summary | |
---|---|
abstract E |
createNewAttribute()
Creates one attribute of type E . |
abstract Collection<E> |
createNewAttributes(int maxAmount)
Creates a collection of attributes of type E . |
Random |
getRandom()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeSetter(Random random)
random
- the random object used for the settersMethod Detail |
---|
public abstract E createNewAttribute()
E
.
The result is determined by random
.
public abstract Collection<E> createNewAttributes(int maxAmount)
E
.
The result is determined by random
.
maxAmount
- the maximum amount of attributes to create
public Random getRandom()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |