[MOBY-guts] biomoby commit

Martin Senger senger at dev.open-bio.org
Mon May 21 00:56:15 UTC 2007


senger
Sun May 20 20:56:15 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser
In directory dev.open-bio.org:/tmp/cvs-serv8252/src/main/org/biomoby/shared/parser

Modified Files:
	ServiceException.java 
Log Message:

moby-live/Java/src/main/org/biomoby/shared/parser ServiceException.java,1.11,1.12
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser/ServiceException.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser/ServiceException.java	2006/11/11 23:04:34	1.11
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser/ServiceException.java	2007/05/21 00:56:15	1.12
@@ -405,7 +405,7 @@
     /**************************************************************************
      *
      *************************************************************************/
-    public Element toDOM() {
+    public Element toXML() {
 	Element elem = MobyPackage.getXMLElement (MobyTags.MOBYEXCEPTION);
 	MobyPackage.setXMLAttribute (elem, MobyTags.SEVERITY, getSeverityAsString());
 	if (refQueryID != null)
@@ -479,26 +479,26 @@
 	return ex;
     }
 
-    public String toXML(){
-	StringBuffer xml = new StringBuffer("          <moby:" + MobyTags.MOBYEXCEPTION + " " +
-					    MobyTags.SEVERITY + "=\"" + severity + "\" ");
-	if(refQueryID != null){
-	    xml.append(MobyTags.REFQUERYID + "=\"" + refQueryID + "\" ");
-	}
-	if(refElement != null){
-	    xml.append(MobyTags.REFELEMENT + "=\"" + refElement + "\" ");
-	}
-	xml.append(">\n");
-
-	xml.append("<moby:"+ MobyTags.EXCEPTIONCODE + ">"+code+"</moby:"+MobyTags.EXCEPTIONCODE+">");
+//     public String toXML(){
+// 	StringBuffer xml = new StringBuffer("          <moby:" + MobyTags.MOBYEXCEPTION + " " +
+// 					    MobyTags.SEVERITY + "=\"" + severity + "\" ");
+// 	if(refQueryID != null){
+// 	    xml.append(MobyTags.REFQUERYID + "=\"" + refQueryID + "\" ");
+// 	}
+// 	if(refElement != null){
+// 	    xml.append(MobyTags.REFELEMENT + "=\"" + refElement + "\" ");
+// 	}
+// 	xml.append(">\n");
+
+// 	xml.append("<moby:"+ MobyTags.EXCEPTIONCODE + ">"+code+"</moby:"+MobyTags.EXCEPTIONCODE+">");
+
+// 	if(getMessage() != null){
+// 	    xml.append("            <moby:"+MobyTags.EXCEPTIONMESSAGE+">"+getMessage()+"</moby:"+MobyTags.EXCEPTIONMESSAGE+">");
+// 	}
 
-	if(getMessage() != null){
-	    xml.append("            <moby:"+MobyTags.EXCEPTIONMESSAGE+">"+getMessage()+"</moby:"+MobyTags.EXCEPTIONMESSAGE+">");
-	}
-
-	xml.append("          </moby:" + MobyTags.MOBYEXCEPTION + ">");
+// 	xml.append("          </moby:" + MobyTags.MOBYEXCEPTION + ">");
 
-	return xml.toString();
-    }
+// 	return xml.toString();
+//     }
 
 }




More information about the MOBY-guts mailing list