Configuration

Datamixer collections, iterators, and functions can be configured in XML. The mapping between XML elements and datamixer objects is defined in a Java properties file, named /datamixer-xml.properties on the classpath.

Two namespaces are recognized by the XML parser:

  • collections, containers, and iterators:
    http://datamixer.org/collection
  • functions:
    http://datamixer.org/function

Attributes

All elements can have an id attribute. If they do, the Datamixer object is cached in a lookup table by that id. The object can be accessed from Java code with:

    import org.datamixer.xml.DatamixerContext;
    Object obj = DatamixerContext.INSTANCE.getAttribute(id);

The returned object can be cast to a DatamixerCollection, DatamixerIterator, etc. as appropriate.

Element Listing

Common
application
file
Collections and Iterators
ints, doubles, dates, strings
iterators
constants
Functions
line
random
arithmetic: add, subtract, multiply, divide
string: concat
Containers
sequence
parallel
counter