com.partnersoft.io
Class DataFilterField

java.lang.Object
  extended by com.partnersoft.io.DataFilterField
All Implemented Interfaces:
Coggable, DataFilterElement

public class DataFilterField
extends java.lang.Object
implements DataFilterElement

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Rich Stepanski

Nested Class Summary
static class DataFilterField.FieldType
           
 
Constructor Summary
DataFilterField(Cog cog)
          Creates a new DataFilterField from the passed cog.
DataFilterField(java.lang.Object field, DataFilterField.FieldType type)
          Creates a new DataRecordFilterField object with the passed value of the passed type.
 
Method Summary
 DataFilterField.FieldType getType()
          Returns the type of this DataRecordFilterField.
 java.lang.Object getValue()
          Returns the value of this DataRecordFilterField.
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFilterField

public DataFilterField(java.lang.Object field,
                       DataFilterField.FieldType type)
Creates a new DataRecordFilterField object with the passed value of the passed type.

Parameters:
field - - Value for this field. ie, field name or constant.
type - - Marks this field as a Constant or a field name.

DataFilterField

public DataFilterField(Cog cog)
Creates a new DataFilterField from the passed cog.

Parameters:
cog -
Method Detail

getValue

public java.lang.Object getValue()
Returns the value of this DataRecordFilterField.

Returns:

getType

public DataFilterField.FieldType getType()
Returns the type of this DataRecordFilterField.

Returns:

toCog

public Cog toCog()
Description copied from interface: Coggable
Returns the complete internal state of this object in the form of a Cog.

Specified by:
toCog in interface Coggable
Returns:
Cog representing the internal state of this object