Package adams.data.twitter
Class SimulatedUserMentionEntity
- java.lang.Object
-
- adams.data.twitter.SimulatedUserMentionEntity
-
- All Implemented Interfaces:
Serializable
,twitter4j.TweetEntity
,twitter4j.UserMentionEntity
public class SimulatedUserMentionEntity extends Object implements twitter4j.UserMentionEntity
Represents aUserMentionedEntity
from a simulated tweet.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_End
the end of the hashtag in the tweet.protected long
m_Id
the ID of the user.protected String
m_Name
the name of the user.protected String
m_ScreenName
the screen name of the user.protected int
m_Start
the start of the hashtag in the tweet.
-
Constructor Summary
Constructors Constructor Description SimulatedUserMentionEntity()
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 hashtag.long
getId()
Returns the user id mentioned in the status.String
getName()
Returns the name mentioned in the status.String
getScreenName()
Returns the screen name mentioned in the status.int
getStart()
Returns the index of the start character of the hashtag.String
getText()
Returns the screen name mentioned in the status.protected void
initialize()
Initializes the members.void
setEnd(int value)
Sets the index of the end character of the hashtag.void
setId(long value)
Sets the user id mentioned in the status.void
setName(String value)
Sets the name mentioned in the status.void
setScreenName(String value)
Sets the screen name mentioned in the status.void
setStart(int value)
Sets the index of the start character of the hashtag.String
toString()
Returns the object as string.
-
-
-
Field Detail
-
m_Name
protected String m_Name
the name of the user.
-
m_ScreenName
protected String m_ScreenName
the screen name of the user.
-
m_Id
protected long m_Id
the ID of the user.
-
m_Start
protected int m_Start
the start of the hashtag in the tweet.
-
m_End
protected int m_End
the end of the hashtag in the tweet.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.
-
setName
public void setName(String value)
Sets the name mentioned in the status.- Parameters:
value
- the name mentioned in the status
-
getName
public String getName()
Returns the name mentioned in the status.- Specified by:
getName
in interfacetwitter4j.UserMentionEntity
- Returns:
- the name mentioned in the status
-
setScreenName
public void setScreenName(String value)
Sets the screen name mentioned in the status.- Parameters:
value
- the screen name mentioned in the status
-
getScreenName
public String getScreenName()
Returns the screen name mentioned in the status.- Specified by:
getScreenName
in interfacetwitter4j.UserMentionEntity
- Returns:
- the screen name mentioned in the status
-
setId
public void setId(long value)
Sets the user id mentioned in the status.- Parameters:
value
- the user id mentioned in the status
-
getId
public long getId()
Returns the user id mentioned in the status.- Specified by:
getId
in interfacetwitter4j.UserMentionEntity
- Returns:
- the user id mentioned in the status
-
setStart
public void setStart(int value)
Sets the index of the start character of the hashtag.- Parameters:
value
- the index of the start character of the hashtag
-
getStart
public int getStart()
Returns the index of the start character of the hashtag.- Specified by:
getStart
in interfacetwitter4j.TweetEntity
- Specified by:
getStart
in interfacetwitter4j.UserMentionEntity
- Returns:
- the index of the start character of the hashtag
-
setEnd
public void setEnd(int value)
Sets the index of the end character of the hashtag.- Parameters:
value
- the index of the end character of the hashtag
-
getEnd
public int getEnd()
Returns the index of the end character of the hashtag.- Specified by:
getEnd
in interfacetwitter4j.TweetEntity
- Specified by:
getEnd
in interfacetwitter4j.UserMentionEntity
- Returns:
- the index of the end character of the hashtag
-
getText
public String getText()
Returns the screen name mentioned in the status. This method implementation is to meet TweetEntity interface and the behavior is equivalent togetScreenName()
- Specified by:
getText
in interfacetwitter4j.TweetEntity
- Specified by:
getText
in interfacetwitter4j.UserMentionEntity
- Returns:
- the screen name mentioned in the status
- See Also:
getScreenName()
-
-