Class PersonNameUrl
- java.lang.Object
-
- romanemperorsscraper.scraping.people.PersonNameUrl
-
public class PersonNameUrl extends java.lang.ObjectClass used to store names and Wikipedia page URLs of people related to Roman Emperors Dynasties.- Author:
- Matteo Collica, Radu Ionut Barbalata
- See Also:
PersonPageData
-
-
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 URLPersonNameUrl(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.StringgetFullName()java.lang.StringgetUrl()
-
-
-
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 setfullName- 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
-
-