org.datamixer.config.functions
Class RandomConfig

java.lang.Object
  extended byorg.datamixer.config.ElementBase
      extended byorg.datamixer.config.GeneratorConfig
          extended byorg.datamixer.config.collections.IteratorConfig
              extended byorg.datamixer.config.functions.RandomConfig
All Implemented Interfaces:
DatamixerConfig

public class RandomConfig
extends IteratorConfig


Field Summary
 
Fields inherited from class org.datamixer.config.collections.IteratorConfig
null_, random_, replace_
 
Constructor Summary
RandomConfig()
           
 
Method Summary
protected  void doGetSupportedAttrs(java.util.List names)
          A list of names of supported attributes.
protected  void doInitialize()
           
 RandomFunction getFunctionImpl()
           
 boolean setAttribute(java.lang.String name, java.lang.Object value)
          Set value into the attribute named name.
 void setFunctionImpl(RandomFunction function)
           
 void setSeed(java.lang.String value)
           
 
Methods inherited from class org.datamixer.config.collections.IteratorConfig
addElement, getCollectionId, getCurrent, getIteratorImpl, getName, getReferenceId, getReplace, getSeed, initIteratorImpl, initRandomIteratorImpl, isNull, isRandom, resolveCollection, setCollectionId, setCurrent, setCurrent, setFormatPattern, setImplAttributes, setIteratorImpl, setName, setNull, setNull, setRandom, setRandom, setReferenceId, setReplace, setReplace, setSeed, validate
 
Methods inherited from class org.datamixer.config.GeneratorConfig
getRepeat, setRepeat, setRepeat
 
Methods inherited from class org.datamixer.config.ElementBase
addField, addListener, error, error, error, findContext, findInContext, findInContext, findNearestContext, getAttribute, getContext, getElement, getElements, getField, getFields, getId, getImpl, getLineNumber, getListeners, getNamespace, getParent, getParentByTag, getQName, getScope, getSupportedAttrs, getSystemId, getTag, getText, initialize, initializeElements, setId, setImpl, setInContext, setInContext, setLineNumber, setListenerImpls, setNamespace, setParent, setScope, setScope, setScope, setSystemId, setTag, setText, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomConfig

public RandomConfig()
Method Detail

doInitialize

protected void doInitialize()
                     throws DatamixerException
Overrides:
doInitialize in class IteratorConfig
Throws:
DatamixerException

setAttribute

public boolean setAttribute(java.lang.String name,
                            java.lang.Object value)
Set value into the attribute named name. Returns true if element was set, false otherwise.

Specified by:
setAttribute in interface DatamixerConfig
Overrides:
setAttribute in class IteratorConfig

doGetSupportedAttrs

protected void doGetSupportedAttrs(java.util.List names)
A list of names of supported attributes.

Overrides:
doGetSupportedAttrs in class IteratorConfig

getFunctionImpl

public RandomFunction getFunctionImpl()

setFunctionImpl

public void setFunctionImpl(RandomFunction function)

setSeed

public void setSeed(java.lang.String value)
Overrides:
setSeed in class IteratorConfig


Copyright © 2004-2006 datamixer.org. All Rights Reserved.