1 23 24 package org.hammurapi; 25 26 27 import org.w3c.dom.Element ; 28 29 import com.pavelvlasov.ant.XmlSourceEntry; 30 31 37 public class InspectorSourceEntry extends XmlSourceEntry implements InspectorSource { 38 public void loadInspectors(InspectorSet inspectorSet) throws HammurapiException { 39 Element documentElement = getDocumentElement(); 40 if (documentElement!=null) { 41 String source=""; 42 if (getFile()!=null) { 43 source = "File: "+getFile().getAbsolutePath(); 44 } else if (getURL()!=null) { 45 source = "URL: "+getURL(); 46 } 47 new DomInspectorSource(documentElement, source).loadInspectors(inspectorSet); 48 } 49 } 50 } 51 | Popular Tags |