1 9 package org.ozoneDB.core.xml; 10 11 import org.xml.sax.*; 12 13 19 public class SuperclassElement implements Consts { 20 21 25 28 private String type; 29 30 32 private Class superclass; 33 34 36 private Object obj; 37 38 42 44 public SuperclassElement () { 45 } 46 47 51 public SuperclassElement (Object obj, Attributes atts) 52 throws ClassNotFoundException { 53 this.obj = obj; 54 55 type = atts.getValue(ATTR_TYPE); 56 superclass = Thread.currentThread().getContextClassLoader().loadClass(type); 57 } 59 60 64 66 public String getType() { 67 return type; 68 } 69 70 72 public Class getSuperclass() { 73 return superclass; 74 } 75 76 78 public Object getObject() { 79 return obj; 80 } 81 82 84 public String toString() { 85 return ("SuperclassElement: " + type); 86 } 87 } 88 89 | Popular Tags |