Uses of Class
romanemperorsscraper.scraping.people.PersonNameUrl
-
Packages that use PersonNameUrl Package Description romanemperorsscraper.scraping.dynasties romanemperorsscraper.scraping.people romanemperorsscraper.tester romanemperorsscraper.ui.people -
-
Uses of PersonNameUrl in romanemperorsscraper.scraping.dynasties
Methods in romanemperorsscraper.scraping.dynasties that return PersonNameUrl Modifier and Type Method Description static PersonNameUrlDynasty. retrieveFounderNameUrl(org.openqa.selenium.WebDriver webDriver)Given a driver loaded with a dynasty's Wikipedia page, retrieve the dynasty founder's name and Wikipedia page URL by iterating through elements of class 'vedi-anche' and picking the first link whose page is an emperor's oneMethods in romanemperorsscraper.scraping.dynasties with parameters of type PersonNameUrl Modifier and Type Method Description booleanDynastyTree. addPersonConnection(PersonPageData firstPersonPageData, PersonNameUrl secondPersonNameUrl, DynastyTree.KinshipDegree kinshipDegree, int offsetX, int offsetY)This method creates the connection between two nodes, represented by a PersonPageData (the first) and a PersonNameUrl (the second one) object, taking in account the relationship between themvoidDynastyTree. addPersonToGraph(PersonNameUrl personNameUrl)Crate and add the Node of the person to the Graph -
Uses of PersonNameUrl in romanemperorsscraper.scraping.people
Fields in romanemperorsscraper.scraping.people declared as PersonNameUrl Modifier and Type Field Description private PersonNameUrlPersonPageData. adoptiveFatherNameUrlprivate PersonNameUrlPersonPageData. fatherNameUrlprivate PersonNameUrlPersonPageData. motherNameUrlprivate PersonNameUrlPersonPageData. personNameUrlFields in romanemperorsscraper.scraping.people with type parameters of type PersonNameUrl Modifier and Type Field Description private java.util.ArrayList<PersonNameUrl>PersonPageData. adoptedChildrenprivate java.util.ArrayList<PersonNameUrl>PersonPageData. childrenprivate java.util.ArrayList<PersonNameUrl>PersonPageData. spousesprivate java.util.ArrayList<PersonNameUrl>PersonPageData. successorsMethods in romanemperorsscraper.scraping.people that return PersonNameUrl Modifier and Type Method Description static PersonNameUrlPersonPageDataSerializer. deserializePersonNameUrl(org.json.simple.JSONObject serializedPersonNameUrl)Restore (and construct) a PersonNameUrl from a JSONObject (its serialized form)PersonNameUrlPersonPageData. getAdoptiveFatherNameUrl()PersonNameUrlPersonPageData. getFatherNameUrl()PersonNameUrlPersonPageData. getMotherNameUrl()PersonNameUrlPersonPageData. getPersonNameUrl()Methods in romanemperorsscraper.scraping.people that return types with arguments of type PersonNameUrl Modifier and Type Method Description static java.util.ArrayList<PersonNameUrl>PersonPageDataSerializer. deserializeArrayOfPersonNameUrl(org.json.simple.JSONObject serializedArrayOfPersonNameUrls)Restore (and construct) an ArrayList of PersonNameUrl(s) from a JSONObject (its serialized form)java.util.ArrayList<PersonNameUrl>PersonPageData. getAdoptedChildren()java.util.ArrayList<PersonNameUrl>PersonPageData. getChildren()private static java.util.ArrayList<PersonNameUrl>PersonPageData. getPersonNameUrls(java.util.ArrayList<java.lang.String> peopleNames, org.openqa.selenium.WebElement informationDataElement)For each link contained in the informationDataElement we check if its text is also contained in the peopleNames ArrayList of strings and eventually add it to an output ArrayList if that's truejava.util.ArrayList<PersonNameUrl>PersonPageData. getSpouses()java.util.ArrayList<PersonNameUrl>PersonPageData. getSuccessors()Methods in romanemperorsscraper.scraping.people with parameters of type PersonNameUrl Modifier and Type Method Description static PersonPageDataPersonPageData. getPersonPageData(org.openqa.selenium.WebDriver webDriver, PersonNameUrl personNameUrl, java.lang.String dynastyPageUrl)Construct a PersonPageData object or return it if it was already constructedprivate static org.json.simple.JSONObjectPersonPageDataSerializer. serializePersonNameUrl(PersonNameUrl personNameUrl)Create and return a serialized form of a given PersonNameUrl objectMethod parameters in romanemperorsscraper.scraping.people with type arguments of type PersonNameUrl Modifier and Type Method Description private static org.json.simple.JSONObjectPersonPageDataSerializer. serializeArrayOfPersonNameUrl(java.util.ArrayList<PersonNameUrl> arrayOfPersonNameUrls)Create and return a serialized form of a given ArrayList of PersonNameUrl objectsConstructors in romanemperorsscraper.scraping.people with parameters of type PersonNameUrl Constructor Description PersonPageData(org.openqa.selenium.WebDriver webDriver, PersonNameUrl personNameUrl, java.lang.String dynastyPageUrl)Fulfill the fields of a PersonPageData object with the information obtained during the scraping of a dynasty member's Wikipedia page -
Uses of PersonNameUrl in romanemperorsscraper.tester
Fields in romanemperorsscraper.tester declared as PersonNameUrl Modifier and Type Field Description private static PersonNameUrlPersonPageDataTester. personNameUrl -
Uses of PersonNameUrl in romanemperorsscraper.ui.people
Methods in romanemperorsscraper.ui.people with parameters of type PersonNameUrl Modifier and Type Method Description private static java.lang.StringBuilderPersonCard. appendStringToInformation(java.lang.StringBuilder information, java.lang.String fieldName, PersonNameUrl personNameUrl)Append a single relative's information if his/her PersonNameUrl existsMethod parameters in romanemperorsscraper.ui.people with type arguments of type PersonNameUrl Modifier and Type Method Description private static java.lang.StringBuilderPersonCard. appendStringToInformation(java.lang.StringBuilder information, java.lang.String fieldName, java.util.ArrayList<PersonNameUrl> arrayOfPersonNameUrls)Appends an ArrayList of relatives of a specific kinship degree if it exists and contains at least one entrystatic java.lang.StringBuilderPersonCard. createMultipleInformation(java.util.ArrayList<PersonNameUrl> arrayOfPersonNameUrl, java.lang.StringBuilder information)Given the ArrayList of PersonNameUrl(s) of a specific kinship degree's relatives, add the list of their names to the string of personal information
-