View Javadoc

1   package org.lcsim.geometry.compact.converter.lcdd.util;
2   
3   /**
4    *
5    * @author tonyj
6    */
7   public class IDSpec extends RefElement
8   {
9      
10     /** Creates a new instance of IDSpec */
11     public IDSpec(String name)
12     {
13        super("idspec",name);
14        setAttribute("length","64");
15     }
16     public void addIDField(IDField field)
17     {
18        addContent(field);
19     }
20     public void setLength(int length)
21     {
22        setAttribute("length",String.valueOf(length));
23     }
24  }