Class 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 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.
    • Constructor Detail

      • SimulatedPlace

        public SimulatedPlace()
    • Method Detail

      • compareTo

        public int compareTo​(twitter4j.Place o)
        Compares this place with the other one. Uses: getId()
        Specified by:
        compareTo in interface Comparable<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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.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 interface twitter4j.Place
        Returns:
        the URL, null if not set
      • toString

        public String toString()
        Returns the ID + name.
        Overrides:
        toString in class Object
        Returns:
        the ID/Name