Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 @Override
 public void searchSoftLaws(SoftLaw sLawObj) {
   // TODO Auto-generated method stub
   // System.out.println("Searching SoftLaws");
   String titlePatternString = sLawObj.getsTitlePattern();
   if (titlePatternString != null) {
     String refString = this.searchEntities(titlePatternString);
     if (refString != null) {
       int refid = CitationCases.getRefid();
       CitationCases.setRefid(refid + 1);
       int CountryId = -1;
       int CitationType = 4; // skannan-comment: changed citation type for Professor
       CitationCases currentCitation =
           new CitationCases(
               refid,
               CountryId,
               CitationType,
               sLawObj.getsLawId(),
               "SL",
               sLawObj.getsLawName1(),
               refString,
               this.getCitationid(),
               String.valueOf(this.getPageNo()),
               this.getCitationString());
       this.getRefCases().add(currentCitation);
       return;
     }
   }
   String formatPatternString = sLawObj.getsFormatPattern();
   if (formatPatternString != null) {
     String refString = this.searchEntities(formatPatternString);
     if (refString != null) {
       int refid = CitationCases.getRefid();
       CitationCases.setRefid(refid + 1);
       int CountryId = -1;
       int CitationType = 4; // skannan-comment: changed citation type for Professor
       CitationCases currentCitation =
           new CitationCases(
               refid,
               CountryId,
               CitationType,
               sLawObj.getsLawId(),
               "SL",
               sLawObj.getsLawName1(),
               refString,
               this.getCitationid(),
               String.valueOf(this.getPageNo()),
               this.getCitationString());
       this.getRefCases().add(currentCitation);
       return;
     }
   }
 }