Package org.apache.commons.digester

Examples of org.apache.commons.digester.Digester.addSetNext()


    digester.addBeanPropertySetter("$/entities/disambiguated/musicBrainz", "musicBrainz");
    digester.addSetNext("$/entities/disambiguated", "setDisambiguated");
    digester.addObjectCreate("$/entities/quotations", Quotations.class);
    digester.addBeanPropertySetter("$/entities/quotations/quotation", "quotation");
    digester.addSetNext("$/entities/quotations", "setQuotations");
    digester.addSetNext("$/entities", "addEntity");
    return (Results) digester.parse(stream);
  }

}
View Full Code Here


    digester.addBeanPropertySetter("results/url", "url");
    digester.addBeanPropertySetter("results/language", "language");
    digester.addObjectCreate("results/docSentiment", DocumentSentiment.class);
    digester.addBeanPropertySetter("results/docSentiment/type", "type");
    digester.addBeanPropertySetter("results/docSentiment/score", "score");
    digester.addSetNext("results/docSentiment", "setDocSentiment");

    return (Results) digester.parse(responseStream);
  }
}
View Full Code Here

    digester.addBeanPropertySetter("results/statusInfo", "statusInfo");
    digester.addBeanPropertySetter("results/url", "url");
    digester.addBeanPropertySetter("results/language", "language");
    digester.addObjectCreate("results/keywords/keyword", Keyword.class);
    digester.addBeanPropertySetter("results/keywords/keyword", "text");
    digester.addSetNext("results/keywords/keyword", "addKeyword");
    return (Results) digester.parse(xmlReader);
  }

}
View Full Code Here

    digester.addBeanPropertySetter("results/statusInfo", "statusInfo");
    digester.addBeanPropertySetter("results/url", "url");
    digester.addObjectCreate("results/microformats/microformat", Microformat.class);
    digester.addBeanPropertySetter("results/microformats/microformat/field", "fieldName");
    digester.addBeanPropertySetter("results/microformats/microformat/data", "fieldData");
    digester.addSetNext("results/microformats/microformat", "addMicroformat");

    return (Results) digester.parse(responseStream);
  }

}
View Full Code Here

    digester.addBeanPropertySetter("results/concepts/concept/census", "census");
    digester.addBeanPropertySetter("results/concepts/concept/geonames", "geonames");
    digester.addBeanPropertySetter("results/concepts/concept/crunchbase", "crunchbase");
    digester.addBeanPropertySetter("results/concepts/concept/semanticCrunchbase",
            "semanticCrunchbase");
    digester.addSetNext("results/concepts/concept", "add");
    digester.addSetNext("results/concepts", "setConcepts");

    return (Results) digester.parse(xmlReader);
  }
}
View Full Code Here

    digester.addBeanPropertySetter("results/concepts/concept/geonames", "geonames");
    digester.addBeanPropertySetter("results/concepts/concept/crunchbase", "crunchbase");
    digester.addBeanPropertySetter("results/concepts/concept/semanticCrunchbase",
            "semanticCrunchbase");
    digester.addSetNext("results/concepts/concept", "add");
    digester.addSetNext("results/concepts", "setConcepts");

    return (Results) digester.parse(xmlReader);
  }
}
View Full Code Here

    digester.addBeanPropertySetter("*/service/version");

    digester.addObjectCreate("*/commandOrder", CommandOrder.class);
    digester.addBeanPropertySetter("*/commandOrder/command");
    digester.addBeanPropertySetter("*/commandOrder/requires");
    digester.addSetNext("*/commandOrder", "addCommandOrder");

    digester.addObjectCreate("*/exportGroup", ExportGroup.class);
    digester.addBeanPropertySetter("*/exportGroup/name");
    digester.addObjectCreate("*/export", Export.class);
    digester.addBeanPropertySetter("*/export/name");
 
View Full Code Here

    digester.addObjectCreate("*/exportGroup", ExportGroup.class);
    digester.addBeanPropertySetter("*/exportGroup/name");
    digester.addObjectCreate("*/export", Export.class);
    digester.addBeanPropertySetter("*/export/name");
    digester.addBeanPropertySetter("*/export/value");
    digester.addSetNext("*/export", "addExport");
    digester.addSetNext("*/exportGroup", "addExportGroup");

    digester.addObjectCreate("*/component", Component.class);
    digester.addBeanPropertySetter("*/component/name");
    digester.addBeanPropertySetter("*/component/category");
 
View Full Code Here

    digester.addBeanPropertySetter("*/exportGroup/name");
    digester.addObjectCreate("*/export", Export.class);
    digester.addBeanPropertySetter("*/export/name");
    digester.addBeanPropertySetter("*/export/value");
    digester.addSetNext("*/export", "addExport");
    digester.addSetNext("*/exportGroup", "addExportGroup");

    digester.addObjectCreate("*/component", Component.class);
    digester.addBeanPropertySetter("*/component/name");
    digester.addBeanPropertySetter("*/component/category");
    digester.addBeanPropertySetter("*/component/publishConfig");
 
View Full Code Here

    digester.addBeanPropertySetter("*/component/name");
    digester.addBeanPropertySetter("*/component/category");
    digester.addBeanPropertySetter("*/component/publishConfig");
    digester.addBeanPropertySetter("*/component/minInstanceCount");
    digester.addBeanPropertySetter("*/component/maxInstanceCount");
    digester.addSetNext("*/component", "addComponent");

    digester.addObjectCreate("*/commandScript", CommandScript.class);
    digester.addBeanPropertySetter("*/commandScript/script");
    digester.addBeanPropertySetter("*/commandScript/scriptType");
    digester.addBeanPropertySetter("*/commandScript/timeout");
 
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.