cmu.survey.editor.data.table
Class OneChoiceDataBitSetStub

java.lang.Object
  extended by cmu.survey.editor.data.table.OneChoiceDataBitSetStub
All Implemented Interfaces:
DataBitSet, OneChoiceDataBitSet, Copyable, Moveable

public class OneChoiceDataBitSetStub
extends java.lang.Object
implements OneChoiceDataBitSet, Copyable, Moveable


Field Summary
protected  StringDataBit choice
           
protected  java.lang.Integer lastQuestionID
           
protected  IntegerDataBit orderIndex
           
protected  java.lang.Integer uniqueRowID
           
 
Constructor Summary
OneChoiceDataBitSetStub()
           
OneChoiceDataBitSetStub(StringDataBit choice, IntegerDataBit orderIndex, java.lang.Integer uniqueRowID, java.lang.Integer lastQuestionID)
           
 
Method Summary
 void changeStorage()
           
 OneChoiceDataBitSetStub copy()
           
 java.lang.Object copyTo(java.lang.Object newParent)
          Make a copy for use in the new parent.
 boolean equals(java.lang.Object compareMe)
          returns true if compareMe is a oncechoicedatabitset and the choice is the same
 StringDataBit getChoice()
           
 java.util.List<DataBit> getDataBits()
           
 java.lang.Integer getLastQuestionID()
           
 IntegerDataBit getOrderIndex()
           
 java.lang.Integer getUniqueRowID()
           
 boolean hasBeenModified()
           
 boolean hasBeenModified(java.lang.Integer questionID)
           
 boolean isNew()
           
 Moveable moveTo(java.lang.Object newParent)
          Move to the new parent.
 void setLastQuestionID(java.lang.Integer last)
           
 void setUniqueRowID(java.lang.Integer uniqueID)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

choice

protected StringDataBit choice

orderIndex

protected IntegerDataBit orderIndex

uniqueRowID

protected java.lang.Integer uniqueRowID

lastQuestionID

protected java.lang.Integer lastQuestionID
Constructor Detail

OneChoiceDataBitSetStub

public OneChoiceDataBitSetStub()

OneChoiceDataBitSetStub

public OneChoiceDataBitSetStub(StringDataBit choice,
                               IntegerDataBit orderIndex,
                               java.lang.Integer uniqueRowID,
                               java.lang.Integer lastQuestionID)
Method Detail

hasBeenModified

public boolean hasBeenModified()
Specified by:
hasBeenModified in interface DataBitSet
Returns:
whether the question has been modified since load or if it is new. Basically, it returns whether this DataBitSet needs to be saved.

hasBeenModified

public boolean hasBeenModified(java.lang.Integer questionID)

getLastQuestionID

public java.lang.Integer getLastQuestionID()

setLastQuestionID

public void setLastQuestionID(java.lang.Integer last)

setUniqueRowID

public void setUniqueRowID(java.lang.Integer uniqueID)

getUniqueRowID

public java.lang.Integer getUniqueRowID()

getChoice

public StringDataBit getChoice()
Specified by:
getChoice in interface OneChoiceDataBitSet
Returns:

getOrderIndex

public IntegerDataBit getOrderIndex()
Specified by:
getOrderIndex in interface OneChoiceDataBitSet
Returns:

toString

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

equals

public boolean equals(java.lang.Object compareMe)
returns true if compareMe is a oncechoicedatabitset and the choice is the same

Specified by:
equals in interface OneChoiceDataBitSet
Overrides:
equals in class java.lang.Object

copy

public OneChoiceDataBitSetStub copy()

copyTo

public java.lang.Object copyTo(java.lang.Object newParent)
Description copied from interface: Copyable
Make a copy for use in the new parent. If the new parent (i.e. the ReorderableListPanel) implements HasData, it will call this method with that data -- i.e. oldCopy.copyTo(futureParentReorderableListItemPanel.getData());

Specified by:
copyTo in interface Copyable
Returns:

moveTo

public Moveable moveTo(java.lang.Object newParent)
Description copied from interface: Moveable
Move to the new parent. If the new parent (i.e. the ReorderableListPanel) implements HasData, it will call this method with that data -- i.e. objectToMove.moveTo(futureParentReorderableListItemPanel.getData());

Specified by:
moveTo in interface Moveable
Returns:

changeStorage

public void changeStorage()

isNew

public boolean isNew()

getDataBits

public java.util.List<DataBit> getDataBits()