edu.stolaf.cs.wmrserver.thrift
Class DataPage

java.lang.Object
  extended by edu.stolaf.cs.wmrserver.thrift.DataPage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<DataPage>, org.apache.thrift.TBase<DataPage,DataPage._Fields>

public class DataPage
extends java.lang.Object
implements org.apache.thrift.TBase<DataPage,DataPage._Fields>, java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Nested Class Summary
static class DataPage._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<DataPage._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
DataPage()
           
DataPage(DataPage other)
          Performs a deep copy on other.
DataPage(java.lang.String data, int totalPages)
           
 
Method Summary
 void clear()
           
 int compareTo(DataPage other)
           
 DataPage deepCopy()
           
 boolean equals(DataPage that)
           
 boolean equals(java.lang.Object that)
           
 DataPage._Fields fieldForId(int fieldId)
           
 java.lang.String getData()
           
 java.lang.Object getFieldValue(DataPage._Fields field)
           
 int getTotalPages()
           
 int hashCode()
           
 boolean isSet(DataPage._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetData()
          Returns true if field data is set (has been assigned a value) and false otherwise
 boolean isSetTotalPages()
          Returns true if field totalPages is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setData(java.lang.String data)
           
 void setDataIsSet(boolean value)
           
 void setFieldValue(DataPage._Fields field, java.lang.Object value)
           
 void setTotalPages(int totalPages)
           
 void setTotalPagesIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetData()
           
 void unsetTotalPages()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final java.util.Map<DataPage._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

DataPage

public DataPage()

DataPage

public DataPage(java.lang.String data,
                int totalPages)

DataPage

public DataPage(DataPage other)
Performs a deep copy on other.

Method Detail

deepCopy

public DataPage deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>

getData

public java.lang.String getData()

setData

public void setData(java.lang.String data)

unsetData

public void unsetData()

isSetData

public boolean isSetData()
Returns true if field data is set (has been assigned a value) and false otherwise


setDataIsSet

public void setDataIsSet(boolean value)

getTotalPages

public int getTotalPages()

setTotalPages

public void setTotalPages(int totalPages)

unsetTotalPages

public void unsetTotalPages()

isSetTotalPages

public boolean isSetTotalPages()
Returns true if field totalPages is set (has been assigned a value) and false otherwise


setTotalPagesIsSet

public void setTotalPagesIsSet(boolean value)

setFieldValue

public void setFieldValue(DataPage._Fields field,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>

getFieldValue

public java.lang.Object getFieldValue(DataPage._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>

isSet

public boolean isSet(DataPage._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(DataPage that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(DataPage other)
Specified by:
compareTo in interface java.lang.Comparable<DataPage>

fieldForId

public DataPage._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>
Throws:
org.apache.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException