Package adams.data.twitter
Class SimulatedPlace
- java.lang.Object
-
- adams.data.twitter.AbstractSimulatedTwitterResponse
-
- adams.data.twitter.SimulatedPlace
-
- All Implemented Interfaces:
Serializable
,Comparable<twitter4j.Place>
,twitter4j.Place
,twitter4j.TwitterResponse
public class SimulatedPlace extends AbstractSimulatedTwitterResponse implements twitter4j.Place
For simulating tweets without using Twitter.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected twitter4j.GeoLocation[][]
m_BoundingBoxCoordinates
the bounding box.protected String
m_BoundingBoxType
the bounding box type.protected twitter4j.Place[]
m_ContainedWithIn
contained within.protected String
m_Country
the country.protected String
m_CountryCode
the country code.protected String
m_FullName
the full name.protected twitter4j.GeoLocation[][]
m_GeometryCoordinates
the coordinates.protected String
m_GeometryType
the geometry type.protected String
m_Id
the Id.protected String
m_Name
the name.protected String
m_PlaceType
place type.protected String
m_StreetAddress
the street address.protected String
m_URL
the URL.
-
Constructor Summary
Constructors Constructor Description SimulatedPlace()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(twitter4j.Place o)
Compares this place with the other one.twitter4j.GeoLocation[][]
getBoundingBoxCoordinates()
Returns the bounding box coordinates.String
getBoundingBoxType()
Returns the type of bounding box.twitter4j.Place[]
getContainedWithIn()
Returns the places this place is contained within.String
getCountry()
Returns the country.String
getCountryCode()
Returns the country code.String
getFullName()
Returns the full name.twitter4j.GeoLocation[][]
getGeometryCoordinates()
Return the coordinates.String
getGeometryType()
Returns the geometry type.String
getId()
Returns the ID of the place.String
getName()
Returns the name of the place.String
getPlaceType()
Returns the place type.String
getStreetAddress()
Returns the street address.String
getURL()
Returns the URL.protected void
initialize()
Initializes the members.void
setBoundingBoxCoordinates(twitter4j.GeoLocation[][] value)
Sets the bounding box coordinates.void
setBoundingBoxType(String value)
Sets the type of bounding box.void
setContainedWithIn(twitter4j.Place[] value)
Sets the places this place is contained within.void
setCountry(String value)
Sets the country.void
setCountryCode(String value)
Sets the country code.void
setFullName(String value)
Sets the full name.void
setGeometryCoordinates(twitter4j.GeoLocation[][] value)
Sets the coordinates.void
setGeometryType(String value)
Sets the geometry type.void
setId(String value)
Sets the ID of the place.void
setName(String value)
Sets the name of the place.void
setPlaceType(String value)
Sets the place type.void
setStreetAddress(String value)
Sets the street address.void
setURL(String value)
Sets the URL.String
toString()
Returns the ID + name.-
Methods inherited from class adams.data.twitter.AbstractSimulatedTwitterResponse
getAccessLevel, getRateLimitStatus
-
-
-
-
Field Detail
-
m_BoundingBoxCoordinates
protected twitter4j.GeoLocation[][] m_BoundingBoxCoordinates
the bounding box.
-
m_BoundingBoxType
protected String m_BoundingBoxType
the bounding box type.
-
m_ContainedWithIn
protected twitter4j.Place[] m_ContainedWithIn
contained within.
-
m_Country
protected String m_Country
the country.
-
m_CountryCode
protected String m_CountryCode
the country code.
-
m_FullName
protected String m_FullName
the full name.
-
m_GeometryCoordinates
protected twitter4j.GeoLocation[][] m_GeometryCoordinates
the coordinates.
-
m_GeometryType
protected String m_GeometryType
the geometry type.
-
m_Id
protected String m_Id
the Id.
-
m_Name
protected String m_Name
the name.
-
m_PlaceType
protected String m_PlaceType
place type.
-
m_StreetAddress
protected String m_StreetAddress
the street address.
-
m_URL
protected String m_URL
the URL.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractSimulatedTwitterResponse
-
compareTo
public int compareTo(twitter4j.Place o)
Compares this place with the other one. Uses:getId()
- Specified by:
compareTo
in interfaceComparable<twitter4j.Place>
- Parameters:
o
- the place to compare with- Returns:
- less than 0, equal to 0, greater than 0 if this place is less, equal or larger than the other one
-
setBoundingBoxCoordinates
public void setBoundingBoxCoordinates(twitter4j.GeoLocation[][] value)
Sets the bounding box coordinates.
-
getBoundingBoxCoordinates
public twitter4j.GeoLocation[][] getBoundingBoxCoordinates()
Returns the bounding box coordinates.- Specified by:
getBoundingBoxCoordinates
in interfacetwitter4j.Place
- Returns:
- the coordinates, null if not set
-
setBoundingBoxType
public void setBoundingBoxType(String value)
Sets the type of bounding box.- Parameters:
value
- the type
-
getBoundingBoxType
public String getBoundingBoxType()
Returns the type of bounding box.- Specified by:
getBoundingBoxType
in interfacetwitter4j.Place
- Returns:
- the type, null if not set
-
setContainedWithIn
public void setContainedWithIn(twitter4j.Place[] value)
Sets the places this place is contained within.- Parameters:
value
- the places, null if not set
-
getContainedWithIn
public twitter4j.Place[] getContainedWithIn()
Returns the places this place is contained within.- Specified by:
getContainedWithIn
in interfacetwitter4j.Place
- Returns:
- the places, null if not set
-
setCountry
public void setCountry(String value)
Sets the country.- Parameters:
value
- the country
-
getCountry
public String getCountry()
Returns the country.- Specified by:
getCountry
in interfacetwitter4j.Place
- Returns:
- the country, null if not set
-
setCountryCode
public void setCountryCode(String value)
Sets the country code.- Parameters:
value
- the country code
-
getCountryCode
public String getCountryCode()
Returns the country code.- Specified by:
getCountryCode
in interfacetwitter4j.Place
- Returns:
- the country code, null if not set
-
setFullName
public void setFullName(String value)
Sets the full name.- Parameters:
value
- the full name
-
getFullName
public String getFullName()
Returns the full name.- Specified by:
getFullName
in interfacetwitter4j.Place
- Returns:
- the full name, null if not set
-
setGeometryCoordinates
public void setGeometryCoordinates(twitter4j.GeoLocation[][] value)
Sets the coordinates.- Parameters:
value
- the coordinates
-
getGeometryCoordinates
public twitter4j.GeoLocation[][] getGeometryCoordinates()
Return the coordinates.- Specified by:
getGeometryCoordinates
in interfacetwitter4j.Place
- Returns:
- the coordinates, null if not set
-
setGeometryType
public void setGeometryType(String value)
Sets the geometry type.- Parameters:
value
- the type
-
getGeometryType
public String getGeometryType()
Returns the geometry type.- Specified by:
getGeometryType
in interfacetwitter4j.Place
- Returns:
- the type, null if not set
-
setId
public void setId(String value)
Sets the ID of the place.- Parameters:
value
- the ID
-
getId
public String getId()
Returns the ID of the place.- Specified by:
getId
in interfacetwitter4j.Place
- Returns:
- the ID, null if not set
-
setName
public void setName(String value)
Sets the name of the place.- Parameters:
value
- the name
-
getName
public String getName()
Returns the name of the place.- Specified by:
getName
in interfacetwitter4j.Place
- Returns:
- the name, null if not set
-
setPlaceType
public void setPlaceType(String value)
Sets the place type.- Parameters:
value
- the type
-
getPlaceType
public String getPlaceType()
Returns the place type.- Specified by:
getPlaceType
in interfacetwitter4j.Place
- Returns:
- the type, null if not set
-
setStreetAddress
public void setStreetAddress(String value)
Sets the street address.- Parameters:
value
- the address
-
getStreetAddress
public String getStreetAddress()
Returns the street address.- Specified by:
getStreetAddress
in interfacetwitter4j.Place
- Returns:
- the address, null if not set
-
setURL
public void setURL(String value)
Sets the URL.- Parameters:
value
- the URL
-
getURL
public String getURL()
Returns the URL.- Specified by:
getURL
in interfacetwitter4j.Place
- Returns:
- the URL, null if not set
-
-