Package org.apache.any23.extractor.html.HTMLDocument

Examples of org.apache.any23.extractor.html.HTMLDocument.TextField.source()


        final TextField fullNameTextField = name.getFullName();
        if(fullNameTextField == null) {
            return false;
        }
        return conditionallyAddStringProperty(
                fullNameTextField.source(),
                card, vCARD.fn, fullNameTextField.value()
        );
    }

    private void readOrganization() {
View Full Code Here


                card, vCARD.org, org
        );
        addURIProperty(org, RDF.TYPE, vCARD.Organization);
        final TextField organizationTextField = name.getOrganization();
        conditionallyAddLiteralProperty(
                organizationTextField.source(),
                org, vCARD.organization_name, valueFactory.createLiteral( organizationTextField.value() )
        );
        final TextField organizationUnitTextField = name.getOrganizationUnit();
        if(organizationUnitTextField != null) {
            conditionallyAddStringProperty(
View Full Code Here

                org, vCARD.organization_name, valueFactory.createLiteral( organizationTextField.value() )
        );
        final TextField organizationUnitTextField = name.getOrganizationUnit();
        if(organizationUnitTextField != null) {
            conditionallyAddStringProperty(
                    organizationUnitTextField.source(),
                    org, vCARD.organization_unit, organizationUnitTextField.value()
            );
        }
        return true;
    }
View Full Code Here

            if (!hasField(fieldName)) continue;
            if (!empty) {
                s.append(' ');
            }
            current = getField(fieldName);
            if(first == null) { first = current.source(); }
            s.append( current.value() );
            empty = false;
        }
        if (empty) return null;
        return new TextField( s.toString(), first);
View Full Code Here

    }

    private void addPrice(Resource listing) {
        TextField price = fragment.getSingularTextField("price");
        conditionallyAddStringProperty(
                price.source(),
                listing, hLISTING.price, price.value()
        );
    }

    private void addDescription(Resource listing) {
View Full Code Here

    }

    private void addDescription(Resource listing) {
        TextField description = fragment.getSingularTextField("description");
        conditionallyAddStringProperty(
                description.source(),
                listing, hLISTING.description, description.value()
        );
    }

    private void addSummary(Resource listing) {
View Full Code Here

    }

    private void addSummary(Resource listing) {
        TextField summary = fragment.getSingularTextField("summary");
        conditionallyAddStringProperty(
                summary.source(),
                listing, hLISTING.summary, summary.value()
        );
    }

    private void addDateTimes(Resource listing) {
View Full Code Here

    }

    private void addDateTimes(Resource listing) {
        TextField listed = fragment.getSingularTextField("dtlisted");
        conditionallyAddStringProperty(
                listed.source(),
                listing, hLISTING.dtlisted, listed.value()
        );
        HTMLDocument.TextField expired = fragment.getSingularTextField("dtexpired");
        conditionallyAddStringProperty(
                expired.source(),
View Full Code Here

    }

    private void addListerFn(HTMLDocument doc, Resource blankLister) {
        TextField fn = doc.getSingularTextField("fn");
        conditionallyAddStringProperty(
                fn.source(),
                blankLister, hLISTING.listerName, fn.value()
        );
    }

    private void addListerLogo(HTMLDocument doc, Resource blankLister) throws ExtractionException {
View Full Code Here

    }

    private void addListerOrg(HTMLDocument doc, Resource blankLister) {
        TextField org = doc.getSingularTextField("org");
        conditionallyAddStringProperty(
                org.source(),
                blankLister, hLISTING.listerOrg, org.value()
        );
    }

    private void addItemName(HTMLDocument item, Resource blankItem) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.