org.knime.core.data
Class DataColumnDomainCreator

java.lang.Object
  extended by org.knime.core.data.DataColumnDomainCreator

public class DataColumnDomainCreator
extends Object

A column domain creator is used to initialize possible values and lower and upper bounds using DataCell objects.

Author:
Thomas Gabriel, University of Konstanz
See Also:
DataColumnDomain, createDomain()

Constructor Summary
DataColumnDomainCreator()
          Creates a new domain creator with no meta-info defined.
DataColumnDomainCreator(DataCell[] values)
          Creates a new domain creator with the given array of values.
DataColumnDomainCreator(DataCell[] values, DataCell lowerBound, DataCell upperBound)
          Creates a new domain creator with an array of possible values, and a lower and upper bound.
DataColumnDomainCreator(DataCell lowerBound, DataCell upperBound)
          Creates a new domain creator with the given lower and upper bound.
DataColumnDomainCreator(DataColumnDomain copyFrom)
          Creates a new domain creator by copying the information from an other column domain.
DataColumnDomainCreator(Set<DataCell> values)
          Creates a new domain creator with a Set of possible values.
DataColumnDomainCreator(Set<DataCell> values, DataCell lowerBound, DataCell upperBound)
          Creates a new domain creator with a Set of possible values, and a lower and upper bound.
 
Method Summary
 DataColumnDomain createDomain()
          Creates a read-only DataColumnDomain based on the internal values.
 void setLowerBound(DataCell lower)
          Sets a (new) lower bound which can be null.
 void setUpperBound(DataCell upper)
          Sets (new) upper bound which can be null.
 void setValues(Set<DataCell> values)
          Sets a (new) Set of possible values which can be null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataColumnDomainCreator

public DataColumnDomainCreator(DataColumnDomain copyFrom)
Creates a new domain creator by copying the information from an other column domain.

Parameters:
copyFrom - the column domain to copy from

DataColumnDomainCreator

public DataColumnDomainCreator()
Creates a new domain creator with no meta-info defined.


DataColumnDomainCreator

public DataColumnDomainCreator(Set<DataCell> values)
Creates a new domain creator with a Set of possible values.

Parameters:
values - the Set of possible values (can be null)

DataColumnDomainCreator

public DataColumnDomainCreator(DataCell[] values)
Creates a new domain creator with the given array of values.

Parameters:
values - the array can be null, whereas null elements are ignored

DataColumnDomainCreator

public DataColumnDomainCreator(DataCell lowerBound,
                               DataCell upperBound)
Creates a new domain creator with the given lower and upper bound.

Parameters:
lowerBound - the lower bound (can be null)
upperBound - the upper bound (can be null)

DataColumnDomainCreator

public DataColumnDomainCreator(DataCell[] values,
                               DataCell lowerBound,
                               DataCell upperBound)
Creates a new domain creator with an array of possible values, and a lower and upper bound. All parameters can be null.

Parameters:
lowerBound - the lower bound
upperBound - the upper bound
values - the array of possible values

DataColumnDomainCreator

public DataColumnDomainCreator(Set<DataCell> values,
                               DataCell lowerBound,
                               DataCell upperBound)
Creates a new domain creator with a Set of possible values, and a lower and upper bound. All parameters can be null.

Parameters:
values - the Set of possible values
lowerBound - the lower bound
upperBound - the upper bound
Method Detail

createDomain

public DataColumnDomain createDomain()
Creates a read-only DataColumnDomain based on the internal values.

Returns:
a new instance of a DataColumnDomain

setValues

public void setValues(Set<DataCell> values)
Sets a (new) Set of possible values which can be null. The values are copied into a unmodifiable set.

Parameters:
values - Set of possible values as DataCell objects

setLowerBound

public void setLowerBound(DataCell lower)
Sets a (new) lower bound which can be null.

Parameters:
lower - the (new) lower bound

setUpperBound

public void setUpperBound(DataCell upper)
Sets (new) upper bound which can be null.

Parameters:
upper - the (new) upper bound


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.