Examples of DocumentLoader


Examples of org.infoset.xml.DocumentLoader

     
   }
   public void load(URI location)
      throws IOException,XMLException
   {
      DocumentLoader loader = new SAXDocumentLoader();
      Document doc = loader.load(location);
      Element top = doc.getDocumentElement();
      if (!top.getName().equals(SERVER)) {
         throw new XMLException("Expecting "+SERVER+" but found "+top.getName());
      }
      String value = top.getAttributeValue("autoconf-check");
View Full Code Here

Examples of org.kitesdk.morphline.solr.DocumentLoader

        super(indexer);
      }
    }
   
    int batchSize = SEQ_NUM2.incrementAndGet() % 2 == 0 ? 100 : 1;
    DocumentLoader testServer = new SolrServerDocumentLoader(solrServer, batchSize);
    MorphlineContext solrMorphlineContext = new SolrMorphlineContext.Builder()
      .setDocumentLoader(testServer)
      .setExceptionHandler(new FaultTolerance(false, false, SolrServerException.class.getName()))
      .setMetricRegistry(new MetricRegistry()).build();
   
View Full Code Here

Examples of org.springframework.beans.factory.xml.DocumentLoader

    // no file found, return null to continue the discovery process
    if (!m2Settings.exists())
      return null;

    try {
      DocumentLoader docLoader = new DefaultDocumentLoader();
      Document document = docLoader.loadDocument(new InputSource(m2Settings.getInputStream()), null, null,
        XmlValidationModeDetector.VALIDATION_NONE, false);

      return (DomUtils.getChildElementValueByTagName(document.getDocumentElement(), LOCAL_REPOSITORY_ELEM));
    }
    catch (Exception ex) {
View Full Code Here

Examples of org.springframework.beans.factory.xml.DocumentLoader

   *
   * @return a <tt>pom.xml</tt> <tt>groupId</tt>.
   */
  String getGroupIdFromPom(Resource pomXml) {
    try {
      DocumentLoader docLoader = new DefaultDocumentLoader();
      Document document = docLoader.loadDocument(new InputSource(pomXml.getInputStream()), null, null,
        XmlValidationModeDetector.VALIDATION_NONE, false);

      String groupId = DomUtils.getChildElementValueByTagName(document.getDocumentElement(), GROUP_ID_ELEM);
      // no groupId specified, try the parent definition
      if (groupId == null) {
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.