1 // 2 // THIS FILE IS AUTOMATICALLY GENERATED!! 3 // 4 // Generated at 2009-08-09 by the VDM++ to JAVA Code Generator 5 // (v8.2.1b - Wed 15-Jul-2009 14:09:22) 6 // 7 // Supported compilers: jdk 1.4/1.5/1.6 8 // 9 10 // ***** VDMTOOLS START Name=HeaderComment KEEP=NO 11 // ***** VDMTOOLS END Name=HeaderComment 12 13 // ***** VDMTOOLS START Name=package KEEP=NO 14 package org.overturetool.api.xml; 15 16 // ***** VDMTOOLS END Name=package 17 18 // ***** VDMTOOLS START Name=imports KEEP=NO 19 20 import jp.co.csk.vdm.toolbox.VDM.*; 21 import java.util.*; 22 // ***** VDMTOOLS END Name=imports 23 24 25 26 public class XmlFactory { 27 28 // ***** VDMTOOLS START Name=vdmComp KEEP=NO 29 static UTIL.VDMCompare vdmComp = new UTIL.VDMCompare(); 30 // ***** VDMTOOLS END Name=vdmComp 31 32 33 // ***** VDMTOOLS START Name=vdm_init_XmlFactory KEEP=NO 34 private void vdm_init_XmlFactory () throws CGException {} 35 // ***** VDMTOOLS END Name=vdm_init_XmlFactory 36 37 38 // ***** VDMTOOLS START Name=XmlFactory KEEP=NO 39 public XmlFactory () throws CGException { 40 vdm_init_XmlFactory(); 41 } 42 // ***** VDMTOOLS END Name=XmlFactory 43 44 45 // ***** VDMTOOLS START Name=readFromFile#1|String KEEP=NO 46 static public XmlDocument readFromFile (final String pfn) throws CGException { 47 48 XmlDocument pnxd = new XmlDocument(); 49 pnxd.parse(pfn); 50 return (XmlDocument) pnxd; 51 } 52 // ***** VDMTOOLS END Name=readFromFile#1|String 53 54 55 // ***** VDMTOOLS START Name=writeToFile#2|String|XmlDocument KEEP=NO 56 static public void writeToFile (final String pfn, final XmlDocument pxd) throws CGException {} 57 // ***** VDMTOOLS END Name=writeToFile#2|String|XmlDocument 58 59 } 60 ;