Package adams.data.twitter
Class SimulatedSymbolEntity
- java.lang.Object
-
- adams.data.twitter.SimulatedSymbolEntity
-
- All Implemented Interfaces:
Serializable
,twitter4j.SymbolEntity
,twitter4j.TweetEntity
public class SimulatedSymbolEntity extends Object implements twitter4j.SymbolEntity
Represents aSymbolEntity
from a simulated tweet.- Version:
- $Revision: 8675 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimulatedSymbolEntity()
Initializes the entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEnd()
Returns the index of the end character of the symbol.int
getStart()
Returns the index of the start character of the symbol.String
getText()
Returns the text of the symbol without #.protected void
initialize()
Initializes the members.void
setEnd(int value)
Sets the index of the end character of the symbol.void
setStart(int value)
Sets the index of the start character of the symbol.void
setText(String value)
Sets the text of the symbol without #.String
toString()
Returns the object as string.
-
-
-
Field Detail
-
m_Text
protected String m_Text
the text of the symbol.
-
m_Start
protected int m_Start
the start of the symbol in the tweet.
-
m_End
protected int m_End
the end of the symbol in the tweet.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.
-
setText
public void setText(String value)
Sets the text of the symbol without #.- Parameters:
value
- the text of the symbol
-
getText
public String getText()
Returns the text of the symbol without #.- Specified by:
getText
in interfacetwitter4j.TweetEntity
- Returns:
- the text of the symbol
-
setStart
public void setStart(int value)
Sets the index of the start character of the symbol.- Parameters:
value
- the index of the start character of the symbol
-
getStart
public int getStart()
Returns the index of the start character of the symbol.- Specified by:
getStart
in interfacetwitter4j.SymbolEntity
- Specified by:
getStart
in interfacetwitter4j.TweetEntity
- Returns:
- the index of the start character of the symbol
-
setEnd
public void setEnd(int value)
Sets the index of the end character of the symbol.- Parameters:
value
- the index of the end character of the symbol
-
getEnd
public int getEnd()
Returns the index of the end character of the symbol.- Specified by:
getEnd
in interfacetwitter4j.SymbolEntity
- Specified by:
getEnd
in interfacetwitter4j.TweetEntity
- Returns:
- the index of the end character of the symbol
-
-