[MOBY-guts] biomoby commit
Martin Senger
senger at pub.open-bio.org
Sun Nov 6 05:31:35 UTC 2005
senger
Sun Nov 6 00:31:35 EST 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory pub.open-bio.org:/tmp/cvs-serv3367/src/main/org/biomoby/shared
Modified Files:
MobyPrimaryDataSimple.java
Log Message:
moby-live/Java/src/main/org/biomoby/shared MobyPrimaryDataSimple.java,1.5,1.6
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrimaryDataSimple.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrimaryDataSimple.java 2005/09/22 16:07:09 1.5
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrimaryDataSimple.java 2005/11/06 05:31:35 1.6
@@ -100,6 +100,20 @@
return true;
}
+ public void removeNamespace (String namespaceName) {
+ removeNamespace (new MobyNamespace (namespaceName));
+ }
+
+ public void removeNamespace (MobyNamespace value) {
+ for (Enumeration en = namespaces.elements(); en.hasMoreElements(); ) {
+ if (en.nextElement().equals (value)) {
+ namespaces.removeElement (value);
+ return;
+ }
+ }
+ }
+
+
/**************************************************************************
* Convert this instance into XML.
* The XML will look like this:
More information about the MOBY-guts
mailing list