Commit in GeomConverter/src/org/lcsim/geometry/compact on MAIN
Header.java+71-591.3 -> 1.4
Set version if exists.

GeomConverter/src/org/lcsim/geometry/compact
Header.java 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- Header.java	4 Jun 2005 02:35:42 -0000	1.3
+++ Header.java	19 Jul 2005 20:30:47 -0000	1.4
@@ -8,63 +8,75 @@
  */
 public class Header
 {
-   private String name;
-   private String author;
-   private String version;
-   private String url;
-   private String comment;
-   
-   protected Header(Element info)
-   {
-      name = info.getAttributeValue("name");
-      author = info.getAttributeValue("author");
-      //version = info.getAttributeValue("version");
-      url = info.getAttributeValue("url");
-      comment = info.getChild("comment").getTextNormalize();      
-   }
-   
-   /**
-    * Get the detector name.
-    * @return The name.
-    */
-   public String getDetectorName()
-   {
-      return name;
-   }
-   
-   /**
-    * Get the author of this detector description.
-    * @return The author.
-    */
-   public String getAuthor()
-   {
-      return author;
-   }
-   
-   /**
-    * Get the version of the detector.
-    * @return The version
-    */
-   public String getVersion()
-   {
-      return version;
-   }
-   
-   /**
-    * The URL providing more information about this detector.
-    * @return The URL.
-    */
-   public String getURL()
-   {
-      return url;
-   }
-   
-   /**
-    * A comment describing the detector
-    * @return The comment.
-    */
-   public String getComment()
-   {
-      return comment;
-   }
+    private String name;
+    private String title;
+    private String author;
+    private String version = "none";
+    private String url;
+    private String comment;
+    
+    protected Header(Element info)
+    {
+        name = info.getAttributeValue("name");
+        author = info.getAttributeValue("author");
+        title = info.getAttributeValue("title");
+        
+        if ( info.getAttribute("version") != null )
+        {
+            version = info.getAttributeValue("version");
+        }
+        
+        url = info.getAttributeValue("url");
+        comment = info.getChild("comment").getTextNormalize();
+    }
+    
+    /**
+     * Get the detector name.
+     * @return The name.
+     */
+    public String getDetectorName()
+    {
+        return name;
+    }
+    
+    /**
+     * Get the author of this detector description.
+     * @return The author.
+     */
+    public String getAuthor()
+    {
+        return author;
+    }
+    
+    /**
+     * Get the version of the detector.
+     * @return The version
+     */
+    public String getVersion()
+    {
+        return version;
+    }
+    
+    /**
+     * The URL providing more information about this detector.
+     * @return The URL.
+     */
+    public String getURL()
+    {
+        return url;
+    }
+    
+    /**
+     * A comment describing the detector
+     * @return The comment.
+     */
+    public String getComment()
+    {
+        return comment;
+    }
+    
+    public String getTitle()
+    {
+        return title;
+    }
 }
\ No newline at end of file
CVSspam 0.2.8