fr.cnes.sitools.dataset.model
Class Sort

java.lang.Object
  extended by fr.cnes.sitools.dataset.model.Sort

public final class Sort
extends java.lang.Object

Sort Definition on a DatasetColumn. Basic Definition used to serialize multiSort on a DataSet.

Author:
d.arpin (AKKA Technologies)

Nested Class Summary
static class Sort.SortOrder
          Sorting order enum
 
Constructor Summary
Sort()
          Default constructor
Sort(java.lang.String field, Sort.SortOrder direction)
          Complete constructor
Sort(java.lang.String field, java.lang.String direction)
          Complete constructor
 
Method Summary
 Sort.SortOrder getDirection()
          Gets the direction value
 java.lang.String getField()
          Gets the value of field
 void setDirection(Sort.SortOrder direction)
          Sets the value of direction
 void setField(java.lang.String field)
          Sets the value of field
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sort

public Sort(java.lang.String field,
            Sort.SortOrder direction)
Complete constructor

Parameters:
field - field
direction - direction

Sort

public Sort(java.lang.String field,
            java.lang.String direction)
Complete constructor

Parameters:
field - field
direction - direction

Sort

public Sort()
Default constructor

Method Detail

getField

public java.lang.String getField()
Gets the value of field

Returns:
the field

setField

public void setField(java.lang.String field)
Sets the value of field

Parameters:
field - the field to set

getDirection

public Sort.SortOrder getDirection()
Gets the direction value

Returns:
the direction

setDirection

public void setDirection(Sort.SortOrder direction)
Sets the value of direction

Parameters:
direction - the direction to set


Copyright © 2010-2013 CNES. All Rights Reserved.