]> source.dussan.org Git - poi.git/commitdiff
should get us sstarted on HDF now! Horay...
authorAndrew C. Oliver <acoliver@apache.org>
Sun, 17 Mar 2002 00:49:35 +0000 (00:49 +0000)
committerAndrew C. Oliver <acoliver@apache.org>
Sun, 17 Mar 2002 00:49:35 +0000 (00:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352239 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/dev/RecordGenerator.java
src/types/styles/hdftype.xsl

index 4c7a3da1f6836353c125de56a0fb61b8712f7886..2c57189a14ac6d5dda278ba393d0d49b9f5a91fb 100644 (file)
@@ -93,7 +93,6 @@ public class RecordGenerator
                 )
                )
             {
-                System.out.println(file.getAbsolutePath());
                 // Get record name and package
                 DocumentBuilderFactory factory =
                         DocumentBuilderFactory.newInstance();
@@ -101,10 +100,7 @@ public class RecordGenerator
                 Document document = builder.parse(file);
                 Element record = document.getDocumentElement();
                 String extendstg = record.getElementsByTagName("extends").item(0).getFirstChild().getNodeValue();
-                System.out.println("extends" + record.getElementsByTagName("extends").getLength());
-                System.out.println("extends" + record.getElementsByTagName("extends").item(0).toString());
                 String suffix = record.getElementsByTagName("suffix").item(0).getFirstChild().getNodeValue();
-                System.out.println("suffix" + record.getElementsByTagName("suffix").getLength());
                 String recordName = record.getAttributes().getNamedItem("name").getNodeValue();
                 String packageName = record.getAttributes().getNamedItem("package").getNodeValue();
                 packageName = packageName.replace('.','/');
@@ -117,8 +113,9 @@ public class RecordGenerator
                 String args[] = new String [] { "-in", file.getAbsolutePath(), "-xsl", recordStyleDir + "/" + extendstg.toLowerCase() + ".xsl",
                                                 "-out", destinationFilepath,
                                                 "-TEXT"};
+
                 org.apache.xalan.xslt.Process.main( args );
-                System.out.println("Generated record: " + destinationFilepath);
+                System.out.println("Generated "+suffix+": " + destinationFilepath);
 
                 // Generate test (if not already generated)
                 destinationPath = testSrcPathDir + "/" + packageName ;
index b284315d93761e9bbe5025dffc3f50eab06ee6ba..de07f12f907ea8697a10e97ca4b218be08db5696 100644 (file)
@@ -76,7 +76,7 @@ import org.apache.poi.util.HexDump;
 <xsl:apply-templates select="author"/>
  */
 public class <xsl:value-of select="@name"/>Type
-    extends HDFType
+    implements HDFType
 {
     public final static short      sid                             = <xsl:value-of select="@id"/>;
 <xsl:for-each select="//fields/field">    private  <xsl:value-of select="recutil:getType(@size,@type,10)"/><xsl:text> </xsl:text><xsl:value-of select="recutil:getFieldName(position(),@name,0)"/>;