public void searchForeignReferences() { // TODO Auto-generated method stub for (ForeignCourt fObj : LoadSearchObjects.getSearchObjs()) { if (fObj.getSearchRegex() != null) { this.searchForeignCourtReferences(fObj); } } // System.out.println("Searching international laws"); for (InternationalCourt iCObj : LoadSearchObjects.getiCSearchObjs()) { if (iCObj.getiFormatPattern() != null || iCObj.getiTitlePattern() != null) this.searchInternationalCourtReferences(iCObj); } for (SoftLaw sLawObj : LoadSearchObjects.getsLawSearchObjs()) { if (sLawObj.getsTitlePattern() != null || sLawObj.getsTitlePattern() != null) this.searchSoftLaws(sLawObj); } for (Treaty tObj : LoadSearchObjects.getTreatySearchObjs()) { if (tObj.gettTitlePattern() != null || tObj.gettFormatPattern() != null) this.searchTreaties(tObj); } return; }
// @Override public void searchInternationalCourtReferences(InternationalCourt iCObj) { // TODO Auto-generated method stub String titlePatternString = iCObj.getiTitlePattern(); if (titlePatternString != null) { String refString = this.searchEntities(titlePatternString); if (refString != null) { int refid = CitationCases.getRefid(); int CountryId = -1; int CitationType = 2; // skannan-comment: changed citation type for Professor CitationCases.setRefid(refid + 1); CitationCases currentCitation = new CitationCases( refid, CountryId, CitationType, iCObj.getiCourtId(), "IC", iCObj.getiCourtName1(), refString, this.getCitationid(), String.valueOf(this.getPageNo()), this.getCitationString()); this.getRefCases().add(currentCitation); return; } } String formatPatternString = iCObj.getiFormatPattern(); if (formatPatternString != null) { String refString = this.searchEntities(formatPatternString); if (refString != null) { int refid = CitationCases.getRefid(); CitationCases.setRefid(refid + 1); int CountryId = -1; int CitationType = 2; // skannan-comment: changed citation type for Professor CitationCases currentCitation = new CitationCases( refid, CountryId, CitationType, iCObj.getiCourtId(), "IC", iCObj.getiCourtName1(), refString, this.getCitationid(), String.valueOf(this.getPageNo()), this.getCitationString()); this.getRefCases().add(currentCitation); return; } } }