Docmosis API 4.5.0

com.docmosis.template.population
Class Discriminator

java.lang.Object
  extended bycom.docmosis.template.population.Discriminator

public class Discriminator
extends Object

A class that looks for column (or multiple column) matches. The idea is that rows of data that have the same of this discriminator's specified column(s) will belong to the same "data provider group" of data. Any rows that have different of the column(s) will belong to a new sub-group. This will help to form a hierarchy of data providers.


Constructor Summary
Discriminator(String column)
          Create a single-columned discriminator.
Discriminator(String[] columns)
          Create a multi-columned discriminator.
 
Method Summary
 boolean equals(Object other)
          Determine whether this object equals another.
protected  String[] getColumns()
          Return columns used for this discriminator.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Discriminator

public Discriminator(String column)
              throws IllegalArgumentException
Create a single-columned discriminator. Any row with the same value of this column will belong to the same data provider group; otherwise they will belong to a different data provider group.

Parameters:
column - the column to discriminate a grouping.
Throws:
IllegalArgumentException - if the column is null or empty.

Discriminator

public Discriminator(String[] columns)
              throws IllegalArgumentException
Create a multi-columned discriminator. Any row with the same of these columns will belong to the same data provider group; otherwise they will belong to a different data provider group.

Parameters:
columns - the columns to discriminate a grouping.
Throws:
IllegalArgumentException - if there are no columns, or any of the columns are null or empty.
Method Detail

equals

public boolean equals(Object other)
Determine whether this object equals another.


hashCode

public int hashCode()

getColumns

protected String[] getColumns()
Return columns used for this discriminator.

Returns:
column names.

toString

public String toString()

Docmosis API 4.5.0

Copyright © 2014 Docmosis Pty Ltd. All Rights Reserved.