Examples of loadXML()


Examples of org.apache.cocoon.sunshine.connector.ResourceConnector.loadXML()

                parameters = this.createParameters(parameters,
                                                   this.handlerName,
                                                   path,
                                                   null);
                connector = (ResourceConnector)manager.lookup(ResourceConnector.ROLE);
                DocumentFragment frag = connector.loadXML(this.authLoadResource.getResourceType(), null,
                                                          this.authLoadResource.getResourceIdentifier(), parameters);
                this.setXML(path, frag);

            } // end synchronized
        } catch (ComponentException ce) {
View Full Code Here

Examples of org.apache.cocoon.sunshine.connector.ResourceConnector.loadXML()

                                               this.applicationName);
            DocumentFragment fragment;
            ResourceConnector connector = null;
            try {
                connector = (ResourceConnector)manager.lookup(ResourceConnector.ROLE);
                fragment = connector.loadXML(loadResourceType, null,
                                             loadResourceName, parameters);
                this.setXML(path, fragment);

            } catch (ComponentException ce) {
                throw new ProcessingException("Unable to lookup the resource connector.", ce);
View Full Code Here

Examples of org.jboss.injection.InjectionHandler.loadXml()

/*  452 */     ClassLoader old = Thread.currentThread().getContextClassLoader();
/*  453 */     Thread.currentThread().setContextClassLoader(this.classloader);
/*      */     try
/*      */     {
/*  457 */       InjectionHandler handler;
/*  457 */       for (Iterator i$ = handlers.iterator(); i$.hasNext(); handler.loadXml(this.xml, this)) handler = (InjectionHandler)i$.next();
/*      */
/*  459 */       Map tmp = InjectionUtil.processAnnotations(this, handlers, getBeanClass());
/*  460 */       this.injectors.addAll(tmp.values());
/*      */
/*  462 */       initialiseInterceptors();
View Full Code Here

Examples of org.jboss.injection.InjectionHandler.loadXml()

/*  462 */       initialiseInterceptors();
/*  463 */       for (Iterator i$ = this.applicableInterceptors.iterator(); i$.hasNext(); ) { interceptorInfo = (InterceptorInfo)i$.next();
/*      */
/*  465 */         for (InjectionHandler handler : handlers)
/*      */         {
/*  467 */           handler.loadXml(interceptorInfo.getXml(), this);
/*      */         }
/*      */       }
/*      */       InterceptorInfo interceptorInfo;
/*  470 */       for (InterceptorInfo interceptorInfo : this.applicableInterceptors)
/*      */       {
View Full Code Here

Examples of org.jboss.injection.InjectionHandler.loadXml()

/* 326 */     handlers.add(new ResourceHandler(false));
/* 327 */     handlers.add(new WebServiceRefHandler());
/*     */     try
/*     */     {
/* 335 */       InjectionHandler handler;
/* 335 */       for (Iterator i$ = handlers.iterator(); i$.hasNext(); handler.loadXml(this.xml, this)) handler = (InjectionHandler)i$.next();
/*     */
/* 337 */       Map tmp = InjectionUtil.processAnnotations(this, handlers, getMainClass());
/* 338 */       this.injectors.addAll(tmp.values());
/*     */     }
/*     */     finally
View Full Code Here

Examples of org.jpokemon.pokemon.Pokemon.loadXml()

    while (_amount > 0)
      remove(0);

    for (XmlNode child : node.getChildren(Pokemon.XML_NODE_NAME)) {
      Pokemon p = new Pokemon(1);
      p.loadXml(child);
      add(p);
    }
  }

  public Iterator<Pokemon> iterator() {
View Full Code Here

Examples of org.jpokemon.trainer.Player.loadXML()

    String filename = name + ".jpkmn";
    File file = new File(JPokemonServer.savepath, filename);

    try {
      player.loadXML(XmlParser.parse(file).get(0));
    }
    catch (FileNotFoundException e) {
    }

    synchronized (players) {
View Full Code Here

Examples of org.jpokemon.trainer.Trainer.loadXml()

    catch (FileNotFoundException e) {
      throw new ServiceException("Trainer file not found: " + getData());
    }

    Trainer trainer = new Trainer(getData());
    trainer.loadXml(trainerData);

    if (!player.record().getTrainer(trainer.id())) {
      PlayerManager.addActivity(player, new Battle(player, trainer));
    }
  }
View Full Code Here

Examples of org.pentaho.di.trans.TransMeta.loadXML()

      final ResourceKey resourceKey = createKey(resourceManager, contextKey);
      final Resource resource = resourceManager.create(resourceKey, contextKey, Document.class);
      final Document document = (Document) resource.getResource();
      final Node node = XMLHandler.getSubNode(document, TransMeta.XML_TAG);
      final TransMeta meta = new TransMeta();
      meta.loadXML(node, repository, true, null, null);
      final String filename = computeFullFilename(resourceKey);
      if (filename != null)
      {
        meta.setFilename(filename);
      }
View Full Code Here

Examples of org.pentaho.di.trans.TransMeta.loadXML()

      final ResourceKey resourceKey = createKey(resourceManager, contextKey);
      final Resource resource = resourceManager.create(resourceKey, contextKey, Document.class);
      final Document document = (Document) resource.getResource();
      final Node node = XMLHandler.getSubNode(document, TransMeta.XML_TAG);
      final TransMeta meta = new TransMeta();
      meta.loadXML(node, repository, true, null, null);
      final String filename = computeFullFilename(resourceKey);
      if (filename != null)
      {
        logger.debug("Computed Transformation Location: " + filename);
        meta.setFilename(filename);
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.