1 16 17 package de.gulden.util.javasource; 18 19 import de.gulden.util.xml.XMLToolbox; 20 import javax.xml.parsers.*; 21 import org.w3c.dom.*; 22 import java.io.*; 23 import java.util.*; 24 25 31 public class ImportClass extends Import { 32 33 39 public ImportClass(Package parent) { 40 super(parent); 41 } 42 43 46 ImportClass(Package parent, String name) { 47 this(parent); 48 setName(name); 49 } 50 51 52 60 public String qualify(String name) { 61 if (this.getName().endsWith("."+name)) { 62 return this.getName(); 63 } else { 64 return null; 65 } 66 } 67 68 74 public Element buildXML(Document d) { 75 Element e=super.buildXML(d); 76 e.setAttribute("kind","class"); 77 return e; 78 } 79 80 } | Popular Tags |