1 23 package org.hammurapi; 24 25 import org.w3c.dom.Element ; 26 27 import com.pavelvlasov.xml.dom.DomSerializable; 28 29 34 public class InspectorSourceInfo implements DomSerializable { 35 private String name; 36 private String location; 37 private String revision; 38 39 44 public InspectorSourceInfo(String name, String location, String revision) { 45 super(); 46 this.name = name; 47 this.location = location; 48 this.revision = revision; 49 } 50 51 public String getLocation() { 52 return location; 53 } 54 public String getName() { 55 return name; 56 } 57 public String getRevision() { 58 return revision; 59 } 60 61 public void toDom(Element holder) { 62 holder.setAttribute("name", name); 63 holder.setAttribute("location", location); 64 holder.setAttribute("revision", revision); 65 } 66 } 67 | Popular Tags |