コード例 #1
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;
     }
   }
 }