[MOBY-guts] biomoby commit

senger@ebi.ac.uk senger at pub.open-bio.org
Thu Sep 23 10:20:30 UTC 2004


senger
Thu Sep 23 06:20:29 EDT 2004
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory pub.open-bio.org:/tmp/cvs-serv17926/src/main/org/biomoby/client

Modified Files:
	CentralImpl.java 
Log Message:
some constants moved from MobyRelationship to Central interface

moby-live/Java/src/main/org/biomoby/client CentralImpl.java,1.14,1.15
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2004/09/22 21:11:17	1.14
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2004/09/23 10:20:29	1.15
@@ -833,7 +833,7 @@
 			if (belows.item (k).getNodeName().equals ("objectType")) {
 			    data.addChild ( ((Element)belows.item (k)).getAttribute ("articleName"),
 					    belows.item (k).getFirstChild().getNodeValue(),
-					    MobyRelationship.HASA );
+					    Central.iHASA );
 			}
 		    }
 		} else if (relationshipType.endsWith ("has")) {
@@ -843,7 +843,7 @@
 			if (belows.item (k).getNodeName().equals ("objectType")) {
 			    data.addChild ( ((Element)belows.item (k)).getAttribute ("articleName"),
 					    belows.item (k).getFirstChild().getNodeValue(),
-					    MobyRelationship.HAS );
+					    Central.iHAS );
 			}
 		    }
 		}
@@ -924,13 +924,13 @@
 	StringBuffer buf2 = new StringBuffer();  // for HASA
 	StringBuffer buf3 = new StringBuffer();  // for HAS
 	for (int i = 0; i < children.length; i++) {
-	    if (children[i].getRelationshipType() == MobyRelationship.HASA) {
+	    if (children[i].getRelationshipType() == Central.iHASA) {
 		buf2.append ("<objectType articleName=\"");
 		buf2.append (children[i].getName());
 		buf2.append ("\">");
 		buf2.append (children[i].getDataTypeName());
 		buf2.append ("</objectType>");
-	    } else if (children[i].getRelationshipType() == MobyRelationship.HAS) {
+	    } else if (children[i].getRelationshipType() == Central.iHAS) {
 		buf3.append ("<objectType articleName=\"");
 		buf3.append (children[i].getName());
 		buf3.append ("\">");




More information about the MOBY-guts mailing list