de.unikassel.android.sdcframework.data.independent
Class TextSampleData

Package class diagram package TextSampleData
java.lang.Object
  extended by de.unikassel.android.sdcframework.data.independent.AbstractSampleData
      extended by de.unikassel.android.sdcframework.data.independent.TextSampleData
All Implemented Interfaces:
SampleData, SerializableData

public final class TextSampleData
extends AbstractSampleData

The device specific sample data of a sensor device with a simple text information (e.g. the sensor device for tags). It does just contain a text field.

See Also:
TwitterDevice, TwitterDeviceScanner

Field Summary
private  String text
          The text (tags).
 
Constructor Summary
TextSampleData()
          Constructor
TextSampleData(TextSampleData sampleData)
          Constructor
 
Method Summary
protected  Object clone()
           
 SampleData doClone()
          Method to clone sample data
 boolean equals(Object o)
           
 String getText()
          Getter for the text (tags)
 void setText(String text)
          Setter for the text (tags)
 
Methods inherited from class de.unikassel.android.sdcframework.data.independent.AbstractSampleData
getRelatedData, toXML, updateRelatedData
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

private String text
The text (tags).

Constructor Detail

TextSampleData

public TextSampleData()
Constructor


TextSampleData

public TextSampleData(TextSampleData sampleData)
Constructor

Parameters:
sampleData - the sample data to copy construct from
Method Detail

doClone

public final SampleData doClone()
Description copied from interface: SampleData
Method to clone sample data

Returns:
a copy of the sample data

clone

protected final Object clone()
                      throws CloneNotSupportedException
Overrides:
clone in class AbstractSampleData
Throws:
CloneNotSupportedException

equals

public final boolean equals(Object o)
Overrides:
equals in class Object

setText

public final void setText(String text)
Setter for the text (tags)

Parameters:
text - the text (tags) to set

getText

public final String getText()
Getter for the text (tags)

Returns:
the text (tags)