org.JCaiF.CoreComponents
Class SimpleResponseList

java.lang.Object
  extended by org.JCaiF.CoreComponents.SimpleResponseList
All Implemented Interfaces:
java.lang.Cloneable, ResponseList, SurveyObject

public class SimpleResponseList
extends java.lang.Object
implements ResponseList

Author:
Michael Hall

Constructor Summary
SimpleResponseList()
          Creates a new instance of SimpleResponseList
 
Method Summary
 void addItem(ListItem i)
           
 void clearSelection()
           
 ResponseList clone()
           
 boolean containsLabel(java.lang.String label)
           
 boolean containsText(java.lang.String text)
           
 boolean containsValue(java.lang.String value)
           
 java.lang.String getId()
           
 ListItem getItemByIndex(int index)
           
 ListItem getItemByLabel(java.lang.String label)
           
 ListItem getItemByText(java.lang.String text)
           
 ResponseList getSelection()
           
 java.lang.String getValue()
           
 int indexOfItem(ListItem i)
           
 void init()
           
 ResponseList invertSelection()
           
 ResponseList randomize()
           
 void removeItem(ListItem i)
           
 ResponseList reverse()
           
 void setId(java.lang.String l)
           
 void setSelection(ResponseList selection)
           
 void setValue(java.lang.String v)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleResponseList

public SimpleResponseList()
Creates a new instance of SimpleResponseList

Method Detail

indexOfItem

public int indexOfItem(ListItem i)
Specified by:
indexOfItem in interface ResponseList

setId

public void setId(java.lang.String l)
Specified by:
setId in interface SurveyObject

setValue

public void setValue(java.lang.String v)
Specified by:
setValue in interface SurveyObject

setSelection

public void setSelection(ResponseList selection)
Specified by:
setSelection in interface ResponseList

toString

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

getId

public java.lang.String getId()
Specified by:
getId in interface SurveyObject

getSelection

public ResponseList getSelection()
Specified by:
getSelection in interface ResponseList

clearSelection

public void clearSelection()
Specified by:
clearSelection in interface ResponseList

getValue

public java.lang.String getValue()
Specified by:
getValue in interface SurveyObject

invertSelection

public ResponseList invertSelection()
Specified by:
invertSelection in interface ResponseList

randomize

public ResponseList randomize()
Specified by:
randomize in interface ResponseList

reverse

public ResponseList reverse()
Specified by:
reverse in interface ResponseList

size

public int size()
Specified by:
size in interface ResponseList

addItem

public void addItem(ListItem i)
Specified by:
addItem in interface ResponseList

removeItem

public void removeItem(ListItem i)
Specified by:
removeItem in interface ResponseList

getItemByText

public ListItem getItemByText(java.lang.String text)
Specified by:
getItemByText in interface ResponseList

getItemByLabel

public ListItem getItemByLabel(java.lang.String label)
Specified by:
getItemByLabel in interface ResponseList

getItemByIndex

public ListItem getItemByIndex(int index)
Specified by:
getItemByIndex in interface ResponseList

containsText

public boolean containsText(java.lang.String text)
Specified by:
containsText in interface ResponseList

containsLabel

public boolean containsLabel(java.lang.String label)
Specified by:
containsLabel in interface ResponseList

containsValue

public boolean containsValue(java.lang.String value)
Specified by:
containsValue in interface ResponseList

init

public void init()
Specified by:
init in interface SurveyObject

clone

public ResponseList clone()
Specified by:
clone in interface ResponseList
Specified by:
clone in interface SurveyObject
Overrides:
clone in class java.lang.Object