Modifier and Type | Method and Description |
---|---|
Bo2ObjectProvider |
clone()
Create a deep copy of the object provider.
|
java.util.List<WPObject> |
getAllObjects()
Obtain a list of all different
WPObject s which this
object provider can return. |
java.lang.String |
getName()
Get the name of this object provider (if it represents one object this
may be the name of the object).
|
WPObject |
getObject()
Obtain one
WPObject , which may be the same one every time, or a
different one from a random collection or sequence every time. |
void |
setSeed(long seed)
Sets the seed of the PRNG, for object providers which use one.
|
java.lang.String getName()
WPObject getObject()
WPObject
, which may be the same one every time, or a
different one from a random collection or sequence every time.WPObject
.java.util.List<WPObject> getAllObjects()
WPObject
s which this
object provider can return. This is an optional operation which may
throw an UnsupportedOperationException
if this object provider
does not support it.java.lang.UnsupportedOperationException
- If this object provider does not
support this operation (for example if the objects are dynamically
generated).void setSeed(long seed)
seed
- The seed to set on the PRNG, if any.Bo2ObjectProvider clone()