1 package org.jbpm.bpel.xml; 2 3 import org.w3c.dom.Element ; 4 5 import org.jbpm.jpdl.xml.Problem; 6 7 import com.ibm.wsdl.util.xml.XPathUtils; 8 9 public class LocalizedProblem extends Problem { 10 11 public LocalizedProblem(int level, String description, Element locationElement) { 12 super(level, description); 13 setLocation(locationElement); 14 } 15 16 private static final long serialVersionUID = 1L; 17 18 private String location; 19 20 24 public String getLocation() { 25 return location; 26 } 27 28 32 public void setLocation(String location) { 33 this.location = location; 34 } 35 36 41 public void setLocation(Element locationElem) { 42 location = XPathUtils.getXPathExprFromNode(locationElem); 43 } 44 45 public String toString() { 46 return super.toString() + " [" + location + "]"; 47 } 48 } 49 | Popular Tags |