perfsonar-dev - nmwg: r373 - trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0
Subject: perfsonar development work
List archive
- From:
- To: ,
- Subject: nmwg: r373 - trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0
- Date: Fri, 12 Sep 2008 07:27:02 -0400
Author: mac
Date: 2008-09-12 07:27:02 -0400 (Fri, 12 Sep 2008)
New Revision: 373
Modified:
trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0/ElementHandler.java
Log:
Debug flag added
Modified: trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0/ElementHandler.java
===================================================================
--- trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0/ElementHandler.java
2008-08-28 14:01:39 UTC (rev 372)
+++ trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0/ElementHandler.java
2008-09-12 11:27:02 UTC (rev 373)
@@ -24,7 +24,10 @@
public class ElementHandler {
+ private boolean debug = false;
+
+
// ----------------------------------------------------- Instance
variables
@@ -43,7 +46,7 @@
*/
Class [] noParams = null;
-
+
// -----------------------------------------------------------
Constructors
@@ -117,7 +120,7 @@
String lookup = uri + element + "/";
-// System.out.println("* Element.create([" +element+"] as
["+lookup+"])");
+ if (debug ==true) System.out.println("* Element.create(["
+element+"] as ["+lookup+"])");
try {
newElement = (Element)((Constructor)e2o.get(lookup)).
@@ -125,12 +128,12 @@
newElement.setUri(uri);
newElement.setLocalName(element);
newElement.setQName(qname);
-
+
if(qname.split(":").length == 1) {
newElement.setPrefix("");
}
else {
- newElement.setPrefix(qname.split(":")[0]);
+ newElement.setPrefix(qname.split(":")[0]);
}
}
- nmwg: r373 - trunk/nmwg/java/org/ggf/ns/nmwg/base/v2_0, svnlog, 09/12/2008
Archive powered by MHonArc 2.6.16.