View Javadoc

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 XmlParser {
27  
28  // ***** VDMTOOLS START Name=vdmComp KEEP=NO
29    static UTIL.VDMCompare vdmComp = new UTIL.VDMCompare();
30  // ***** VDMTOOLS END Name=vdmComp
31  
32  // ***** VDMTOOLS START Name=fName KEEP=NO
33    private String fName = null;
34  // ***** VDMTOOLS END Name=fName
35  
36  // ***** VDMTOOLS START Name=xmlEvent KEEP=NO
37    private XmlEvent xmlEvent = null;
38  // ***** VDMTOOLS END Name=xmlEvent
39  
40  
41  // ***** VDMTOOLS START Name=vdm_init_XmlParser KEEP=NO
42    private void vdm_init_XmlParser () throws CGException {
43      try {
44  
45        fName = new String("");
46        xmlEvent = null;
47      }
48      catch (Exception e){
49  
50        e.printStackTrace(System.out);
51        System.out.println(e.getMessage());
52      }
53    }
54  // ***** VDMTOOLS END Name=vdm_init_XmlParser
55  
56  
57  // ***** VDMTOOLS START Name=XmlParser KEEP=NO
58    public XmlParser () throws CGException {
59      vdm_init_XmlParser();
60    }
61  // ***** VDMTOOLS END Name=XmlParser
62  
63  
64  // ***** VDMTOOLS START Name=XmlParser#2|String|XmlEvent KEEP=NO
65    public XmlParser (final String fn, final XmlEvent xe) throws CGException {
66  
67      vdm_init_XmlParser();
68      {
69  
70        fName = UTIL.ConvertToString(UTIL.clone(fn));
71        xmlEvent = (XmlEvent) UTIL.clone(xe);
72      }
73    }
74  // ***** VDMTOOLS END Name=XmlParser#2|String|XmlEvent
75  
76  
77  // ***** VDMTOOLS START Name=parse KEEP=NO
78    public void parse () throws CGException {}
79  // ***** VDMTOOLS END Name=parse
80  
81  }
82  ;