Class PersonNameUrl


  • public class PersonNameUrl
    extends java.lang.Object
    Class used to store names and Wikipedia page URLs of people related to Roman Emperors Dynasties.
    Author:
    Matteo Collica, Radu Ionut Barbalata
    See Also:
    PersonPageData
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String fullName  
      private java.lang.String url  
    • Constructor Summary

      Constructors 
      Constructor Description
      PersonNameUrl​(java.lang.String fullName, java.lang.String url)
      Construct a PersonNameUrl object by setting its full name and Wikipedia page URL
      PersonNameUrl​(org.json.simple.JSONObject serializedPersonNameUrl)
      Deserialize the person's full name and Wikipedia page URL
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFullName()  
      java.lang.String getUrl()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fullName

        private final java.lang.String fullName
      • url

        private java.lang.String url
    • Constructor Detail

      • PersonNameUrl

        public PersonNameUrl​(java.lang.String fullName,
                             java.lang.String url)
        Construct a PersonNameUrl object by setting its full name and Wikipedia page URL
        Parameters:
        url - the Wikipedia page url to be set
        fullName - the full name to be set
      • PersonNameUrl

        public PersonNameUrl​(org.json.simple.JSONObject serializedPersonNameUrl)
        Deserialize the person's full name and Wikipedia page URL
        Parameters:
        serializedPersonNameUrl - the JSONObject to deserialize data from
    • Method Detail

      • getFullName

        public java.lang.String getFullName()
        Returns:
        the full name of the person represented by this PersonNameUrl object
      • getUrl

        public java.lang.String getUrl()
        Returns:
        the Wikipedia Page URL of the person represented by this PersonNameUrl object