(no commit message)
[utils] / support / general / src / main / java / org / wamblee / xml / SimpleNamespaceContext.java
index 7e8092a980b7f2197564b4455b61dcc5bbb10d39..85efeb0845f0f933f1e7ea11fcd8aa9c3e424e8f 100644 (file)
@@ -48,6 +48,14 @@ public class SimpleNamespaceContext implements NamespaceContext {
         defaultNs = null;
         prefixMap = new HashMap<String, String>();
     }
+    
+    /**
+     * Creation of the namespace context for use with static imports.
+     * @return Empty namespace context. 
+     */
+    public static SimpleNamespaceContext namespaces() { 
+        return new SimpleNamespaceContext();
+    }
 
     /**
      * Constructs a context with a single prefix.