Package org.apache.commons.digester

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


    // enable ajax
    digester.addCallMethod("tobago-config/ajax-enabled", "setAjaxEnabled", 0);
    digester.addObjectCreate("tobago-config/renderers", RenderersConfigImpl.class);
    digester.addSetNext("tobago-config/renderers", "setRenderersConfig");
    digester.addObjectCreate("tobago-config/renderers/renderer",  RendererConfig.class);
    digester.addSetNext("tobago-config/renderers/renderer", "addRenderer");
    digester.addCallMethod("tobago-config/renderers/renderer/name", "setName", 0);
    digester.addObjectCreate("tobago-config/renderers/renderer/supported-markup",  MarkupConfig.class);
    digester.addSetNext("tobago-config/renderers/renderer/supported-markup", "setMarkupConfig");
    digester.addCallMethod("tobago-config/renderers/renderer/supported-markup/markup", "addMarkup" , 0);
View Full Code Here


    digester.addSetNext("tobago-config/renderers", "setRenderersConfig");
    digester.addObjectCreate("tobago-config/renderers/renderer",  RendererConfig.class);
    digester.addSetNext("tobago-config/renderers/renderer", "addRenderer");
    digester.addCallMethod("tobago-config/renderers/renderer/name", "setName", 0);
    digester.addObjectCreate("tobago-config/renderers/renderer/supported-markup",  MarkupConfig.class);
    digester.addSetNext("tobago-config/renderers/renderer/supported-markup", "setMarkupConfig");
    digester.addCallMethod("tobago-config/renderers/renderer/supported-markup/markup", "addMarkup" , 0);

    return digester;
  }
View Full Code Here

            "ciaFactbook");
    digester.addBeanPropertySetter("results/entities/entity/disambiguated/census", "census");
    digester.addBeanPropertySetter("results/entities/entity/disambiguated/geonames", "geonames");
    digester.addBeanPropertySetter("results/entities/entity/disambiguated/musicBrainz",
            "musicBrainz");
    digester.addSetNext("results/entities/entity/disambiguated", "setDisambiguated");
    digester.addObjectCreate("results/entities/entity/quotations", Quotations.class);
    digester.addBeanPropertySetter("results/entities/entity/quotations/quotation", "quotation");
    digester.addSetNext("results/entities/entity/quotations", "setQuotations");
    digester.addObjectCreate("results/entities/entity/sentiment", DocumentSentiment.class);
    digester.addBeanPropertySetter("results/entities/entity/sentiment/type", "type");
View Full Code Here

    digester.addBeanPropertySetter("results/entities/entity/disambiguated/musicBrainz",
            "musicBrainz");
    digester.addSetNext("results/entities/entity/disambiguated", "setDisambiguated");
    digester.addObjectCreate("results/entities/entity/quotations", Quotations.class);
    digester.addBeanPropertySetter("results/entities/entity/quotations/quotation", "quotation");
    digester.addSetNext("results/entities/entity/quotations", "setQuotations");
    digester.addObjectCreate("results/entities/entity/sentiment", DocumentSentiment.class);
    digester.addBeanPropertySetter("results/entities/entity/sentiment/type", "type");
    digester.addBeanPropertySetter("results/entities/entity/sentiment/score", "score");
    digester.addSetNext("results/entities/entity/sentiment", "setSentiment");
    digester.addSetNext("results/entities/entity", "addEntity");
View Full Code Here

    digester.addBeanPropertySetter("$/concepts/concept/ciaFactbook", "ciaFactbook");
    digester.addBeanPropertySetter("$/concepts/concept/census", "census");
    digester.addBeanPropertySetter("$/concepts/concept/geonames", "geonames");
    digester.addBeanPropertySetter("$/concepts/concept/crunchbase", "crunchbase");
    digester.addBeanPropertySetter("$/concepts/concept/semanticCrunchbase", "semanticCrunchbase");
    digester.addSetNext("$/concepts", "addConcept");

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

    digester.addBeanPropertySetter("results/entities/entity/quotations/quotation", "quotation");
    digester.addSetNext("results/entities/entity/quotations", "setQuotations");
    digester.addObjectCreate("results/entities/entity/sentiment", DocumentSentiment.class);
    digester.addBeanPropertySetter("results/entities/entity/sentiment/type", "type");
    digester.addBeanPropertySetter("results/entities/entity/sentiment/score", "score");
    digester.addSetNext("results/entities/entity/sentiment", "setSentiment");
    digester.addSetNext("results/entities/entity", "addEntity");
    digester.addSetNext("results/entities", "setEntities");

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

    digester.addSetNext("results/entities/entity/quotations", "setQuotations");
    digester.addObjectCreate("results/entities/entity/sentiment", DocumentSentiment.class);
    digester.addBeanPropertySetter("results/entities/entity/sentiment/type", "type");
    digester.addBeanPropertySetter("results/entities/entity/sentiment/score", "score");
    digester.addSetNext("results/entities/entity/sentiment", "setSentiment");
    digester.addSetNext("results/entities/entity", "addEntity");
    digester.addSetNext("results/entities", "setEntities");

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

    digester.addObjectCreate("results/entities/entity/sentiment", DocumentSentiment.class);
    digester.addBeanPropertySetter("results/entities/entity/sentiment/type", "type");
    digester.addBeanPropertySetter("results/entities/entity/sentiment/score", "score");
    digester.addSetNext("results/entities/entity/sentiment", "setSentiment");
    digester.addSetNext("results/entities/entity", "addEntity");
    digester.addSetNext("results/entities", "setEntities");

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

}
View Full Code Here

    digester.addBeanPropertySetter("$/entities/disambiguated/freebase", "freebase");
    digester.addBeanPropertySetter("$/entities/disambiguated/ciaFactbook", "ciaFactbook");
    digester.addBeanPropertySetter("$/entities/disambiguated/census", "census");
    digester.addBeanPropertySetter("$/entities/disambiguated/geonames", "geonames");
    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("$/entities/disambiguated/geonames", "geonames");
    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

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.