1 package org.catacomb.serial.state; 2 3 import org.catacomb.serial.om.OmElement; 4 5 6 7 public class TypeClass extends OmElement { 8 9 public String catalogID; 10 11 12 public TypeClass(String s, String typeName, int id) { 13 super(s); 14 addAttribute("typeName", "" + typeName); 15 addAttribute("catalogID", "" + id); 16 } 17 18 19 public void addTypeInstance(TypeInstance ti) { 20 addElement(ti); 21 } 22 23 public boolean hasInstances() { 24 return hasElements(); 25 } 26 27 }