Examples of loadMapping()


Examples of org.exolab.castor.mapping.Mapping.loadMapping()

  }
 
  public PersistenceLoader() throws Exception {
    Mapping mapping = new Mapping();
    InputSource input = new InputSource(getClass().getResourceAsStream("/com/jada/xml/persistence/PersistenceMapping.xml"));
    mapping.loadMapping(input);
   
    XMLContext context = new XMLContext();
    context.addMapping(mapping);
   
    InputStream stream = getClass().getResourceAsStream("/META-INF/persistence.xml");
View Full Code Here

Examples of org.exolab.castor.mapping.Mapping.loadMapping()

    email = siteDomainParamBean.getBusinessEmail();
   
    Mapping mapping = new Mapping();
   
    InputSource input = new InputSource(getClass().getResourceAsStream("/com/jada/xml/psigate/OrderMapping.xml"));
    mapping.loadMapping(input);
    xmlContext = new XMLContext();
    xmlContext.addMapping(mapping);
   
    input = new InputSource(getClass().getResourceAsStream("/com/jada/xml/psigate/ResultMapping.xml"));
    mapping.loadMapping(input);
View Full Code Here

Examples of org.exolab.castor.mapping.Mapping.loadMapping()

    mapping.loadMapping(input);
    xmlContext = new XMLContext();
    xmlContext.addMapping(mapping);
   
    input = new InputSource(getClass().getResourceAsStream("/com/jada/xml/psigate/ResultMapping.xml"));
    mapping.loadMapping(input);
    xmlContext = new XMLContext();
    xmlContext.addMapping(mapping);   
  }
 
  public boolean isProvideCustomer() {
View Full Code Here

Examples of org.exolab.castor.mapping.Mapping.loadMapping()

  XMLContext xmlContext = null;
 
  public ItemSimpleXmlTransformation() throws MappingException {
    Mapping mapping = new Mapping();
    InputSource input = new InputSource(getClass().getResourceAsStream("/com/jada/xml/ie/ItemSimpleMapping.xml"));
    mapping.loadMapping(input);
   
    xmlContext = new XMLContext();
    xmlContext.addMapping(mapping);   
  }
 
View Full Code Here

Examples of org.exolab.castor.mapping.Mapping.loadMapping()

      UrlSet urlSet = new UrlSet();
      urlSet.setUrl(urls);
     
    Mapping mapping = new Mapping();
    InputSource input = new InputSource(getClass().getResourceAsStream("/com/jada/xml/sitemap/UrlSetMapping.xml"));
    mapping.loadMapping(input);
   
    XMLContext context = new XMLContext();
    context.addMapping(mapping);
   
    StringWriter writer = new StringWriter();
View Full Code Here

Examples of org.exolab.castor.mapping.Mapping.loadMapping()

  }
 
  public DatabaseUpgradeQuery() throws Exception {
    Mapping mapping = new Mapping();
    InputSource input = new InputSource(getClass().getResourceAsStream("/com/jada/xml/databaseUpgrade/DatabaseUpgradeQueriesMapping.xml"));
    mapping.loadMapping(input);
   
    XMLContext context = new XMLContext();
    context.addMapping(mapping);
   
    InputStream stream = getClass().getResourceAsStream("/com/jada/xml/databaseUpgrade/DatabaseUpgradeQuery.xml");
View Full Code Here

Examples of org.exolab.castor.mapping.Mapping.loadMapping()

                resolver.release(source);
            }
            try {
                source = resolver.resolveURI(WEBXML_MAPPING);

                mappingWebXml.loadMapping(SourceUtil.getInputSource(source));
            } finally {
                resolver.release(source);
            }

            String baseWMDir = servletContext.getRealPath("");
View Full Code Here

Examples of org.exolab.castor.mapping.Mapping.loadMapping()

            name = (String)entry.getKey();
            mappingSource = (String)entry.getValue();
           
        source = resolver.resolveURI(mappingSource);
        mapping = new Mapping();
        mapping.loadMapping(SourceUtil.getInputSource(source));
        this.mappings.put(name, mapping);
          }
        } finally {
            if (source != null) {
                resolver.release(source);
View Full Code Here

Examples of org.exolab.castor.mapping.Mapping.loadMapping()

     */
    public void testXMLContextByMapping() throws Exception {
       
        XMLContext xmlContext = new XMLContext();
        Mapping mapping = xmlContext.createMapping();
        mapping.loadMapping(new InputSource(getResource(MAPPING_FILE)));
       
        xmlContext.addMapping(mapping);
       
        Unmarshaller unmarshaller = xmlContext.createUnmarshaller();
        assertNotNull(unmarshaller);
View Full Code Here

Examples of org.exolab.castor.mapping.Mapping.loadMapping()

     *
     * @throws Exception For any exception thrown.
     */
    public void testUnmarshalSimpleBean() throws Exception {
        Mapping mapping = new Mapping();
        mapping.loadMapping(getClass().getResource(MAPPING_FILE).toExternalForm());
       
        Unmarshaller unmarshaller = new Unmarshaller(Bean.class);
        unmarshaller.setMapping(mapping);
       
        String input
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.