[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Mon Mar 12 16:58:48 UTC 2007
gordonp
Mon Mar 12 12:58:48 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv4291/src/main/org/biomoby/shared
Modified Files:
MobyPrefixResolver.java
Log Message:
Doc updates, made node list class static for use externally
moby-live/Java/src/main/org/biomoby/shared MobyPrefixResolver.java,1.7,1.8
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrefixResolver.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrefixResolver.java 2006/10/26 01:32:06 1.7
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrefixResolver.java 2007/03/12 16:58:48 1.8
@@ -18,6 +18,9 @@
* Using this class is the only way to compile XPaths that are independent
* of the namespace declarations in the document (since those are the default ones
* used by XPath evaluators).
+ *
+ * NOTE: the methods of this class rely on the DOM being parsed with a namespace-aware
+ * parser!
*/
public class MobyPrefixResolver implements PrefixResolver{
@@ -77,7 +80,7 @@
/**
* Convenience method that matches child elements in the MOBY namespace or, for now
* at least, with no declared namespace. "*" acts as a wildcard.
- * @return the list of children, or null if either the elemtn or name is null does not exist
+ * @return the list of children, or null if either the element or name is null does not exist
*/
public static NodeList getChildElements(org.w3c.dom.Element e, String elementName){
if(elementName == null || e == null){
@@ -109,7 +112,7 @@
return matches;
}
- static class MobyNodeList implements NodeList{
+ public static class MobyNodeList implements NodeList{
private Vector nodes;
public MobyNodeList(){nodes = new Vector();}
public int getLength(){return nodes.size();}
More information about the MOBY-guts
mailing list