Package org.sintef.umt.transformer

Examples of org.sintef.umt.transformer.XMLUtility.transform()


      try
        XMLUtility xmlutil = new XMLUtility();
        // xmlutil.addLookupPath(UMTMain.resource_dir);
        File schemaFile = new File(XMLSchemaFileName);
        File convertFile = new File(UMTMain.resource_dir + "convert-enumerations.xsl");
        String insensitiveSchema = xmlutil.transform(schemaFile,convertFile);
        FileWriter writer = new FileWriter (new File("insensitive_"+XMLSchemaFileName))
        writer.write(insensitiveSchema);
        writer.close();
        writer = null;   
      } catch (Exception ex) {
View Full Code Here


        xsltfile = new File (uml2xmi2xmilight);
      // TODO : remove copyResourcesToTarget
      // copyResourcesToTarget (xmisource);   
      XMLUtility xmlutility = new XMLUtility(output);
      xmlutility.addLookupPath(UMTMain.resource_dir);     
      hutn = xmlutility.transform(xmisource, xsltfile)
//      if (!UMTMain.environmentIsEmbedded())
      xmlutility.doSAXParseValidate(new StringReader(hutn));
      xmlutility = null;
      xsltfile = null;
    } catch (Exception ex) {
View Full Code Here

      Reader xsltreader = null;
      try {
        xsltreader = new FileReader (xsltfile);
      } catch (IOException ioex) {
      }
      hutn = xmlutility.transform(xmisource, xsltreader);
      xmlutility.doSAXParseValidate(new StringReader(hutn));
      xmlutility = null; xsltfile = null;
    } catch (Exception ex) {     
    }
   
View Full Code Here

      Reader xmilight = hutntext.getReader();
      String xslt = UMTMain.resource_dir + UMTMain.getResourceName("transformation.xmilight2xmi");
      File xsltfile = new File (xslt);
      FileReader xsltreader = new FileReader (xsltfile);
      XMLUtility xmlutility = new XMLUtility (output);     
      xmlutility.transform(xmilight, xsltreader, xmiwriter);     
    } catch (Exception ex) {
      System.out.println (ex);
    }
  }
 
View Full Code Here

  {
    StringWriter resultwriter = new StringWriter ();
    XMLUtility xmlutility = null;   
    try{
      xmlutility = new XMLUtility (output);
      String result = xmlutility.transform(source, transformsource);
      return result;     
    } catch (Exception ex) {
      System.out.println ("doTransform::" + ex);
    }
    xmlutility = null;
View Full Code Here

            } catch (FileNotFoundException fex) {
                System.out.println ("VariabilityManager::startResolving:" + fex);
            }
            if (transformationReader != null) {
                writer = new StringWriter ();
                xmlUtil.transform(sourceReader, transformationReader, new BufferedWriter(writer));
                buf = writer.getBuffer();
            }               
            if (storeModel) {
                VariabilityManager.storeTextModel(result, buf, exportType);
            }
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.