com.sibvisions.rad.model
Class DataBookBuilder

java.lang.Object
  extended by com.sibvisions.rad.model.DataBookBuilder

public final class DataBookBuilder
extends java.lang.Object

The DataBookBuilder is a utility class for building/creating pre-configured databooks.


Method Summary
static IDataBook build(java.util.List<java.lang.Object> pValues)
          Builds a data book with given values.
static IDataBook build(java.util.List<java.lang.Object> pValues, boolean pUnique)
          Builds a data book with given values.
static IDataBook build(java.util.Map<?,?> pMap)
          Builds a data book with given key/value pairs.
static IDataBook build(java.lang.Object[] pValues)
          Builds a data book with given values.
static IDataBook build(java.lang.Object[] pValues, boolean pUnique)
          Builds a data book with given values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public static IDataBook build(java.lang.Object[] pValues)
                       throws ModelException
Builds a data book with given values. All values will be used.

Parameters:
pValues - the list of values
Returns:
the book
Throws:
ModelException - if data book creation fails

build

public static IDataBook build(java.lang.Object[] pValues,
                              boolean pUnique)
                       throws ModelException
Builds a data book with given values. Only unique values will be used.

Parameters:
pValues - the list of values
pUnique - true to ignore duplicate values, false to use all values
Returns:
the book
Throws:
ModelException - if data book creation fails

build

public static IDataBook build(java.util.List<java.lang.Object> pValues)
                       throws ModelException
Builds a data book with given values. All values will be used.

Parameters:
pValues - the list of values
Returns:
the book
Throws:
ModelException - if data book creation fails

build

public static IDataBook build(java.util.List<java.lang.Object> pValues,
                              boolean pUnique)
                       throws ModelException
Builds a data book with given values. Only unique values will be used.

Parameters:
pValues - the list of values
pUnique - true to ignore duplicate values, false to use all values
Returns:
the book
Throws:
ModelException - if data book creation fails

build

public static IDataBook build(java.util.Map<?,?> pMap)
                       throws ModelException
Builds a data book with given key/value pairs.

Parameters:
pMap - the key/value mapping
Returns:
the book
Throws:
ModelException - if data book creation fails


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.