Package gov.nysenate.openleg.qa.model

Examples of gov.nysenate.openleg.qa.model.NonMatchingField


                }
                else {
                    if(luceneBill.getMemo() == null || luceneBill.getMemo().matches("\\s*")) {
                        ProblemBill problemBill = new ProblemBill(
                                luceneBill.getSenateBillNo(), luceneBill.getModified());
                        problemBill.addNonMatchingField(new NonMatchingField(FieldName.MEMO, null, null));
                        problemBill.setLastReported(time);

                        ret.add(problemBill);
                    }
                }
View Full Code Here


                if(valid(lbdcBill.getSponsor(), luceneBill.getSponsor())) {
                    if(!cln(lbdcBill.getSponsor().getFullname()).equalsIgnoreCase(
                            cln(luceneBill.getSponsor().getFullname().replaceAll("\\s*\\(MS\\)", "")))) {

                        problemBill.addNonMatchingField(
                                new NonMatchingField(
                                        FieldName.SPONSOR,
                                        luceneBill.getSponsor().getFullname(),
                                        lbdcBill.getSponsor().getFullname()));
                    }
                }
View Full Code Here

    private void doCollectionField(ProblemBill problemBill, FieldName fieldName, Collection<?> openCol, Collection<?> lbdcCol) {
        if(valid(openCol, lbdcCol)) {
            if(lbdcCol.size() - openCol.size() > 0) {
                problemBill.addNonMatchingField(
                        new NonMatchingField(
                                fieldName,
                                openCol.size()+"",
                                lbdcCol.size()+""));
            }
        }
View Full Code Here

        if(valid(openField,lbdcField)) {
            lbdcField = cln(lbdcField);
            openField = cln(openField);
            if(!lbdcField.matches((pattern == null ? "" : pattern) + Pattern.quote(openField))) {
                problemBill.addNonMatchingField(
                        new NonMatchingField(
                                fieldName,
                                openField,
                                lbdcField));
            }
        }
View Full Code Here

            if(luceneBill.getFulltext() != null) {
                int pageNumber = getPageNumber(rawBillNo.replaceAll("^0*", ""), luceneBill.getFulltext());

                if(pageNumber != new Integer(lbdcPageCount)) {
                    ProblemBill problemBill = new ProblemBill(formattedBillNo, luceneBill.getModified());
                    problemBill.addNonMatchingField(new NonMatchingField(FieldName.FULLTEXT, pageNumber + "", lbdcPageCount + ""));
                    problemBill.setLastReported(time);
                    return problemBill;
                }
            }
        }
View Full Code Here

TOP

Related Classes of gov.nysenate.openleg.qa.model.NonMatchingField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.