From 4360e4098b17650629a542b855b41b4d6b572fbc Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 4 Mar 2011 22:36:56 +0000 Subject: [PATCH] --- .../main/java/org/wamblee/xml/SimpleNamespaceContext.java | 4 ++++ .../general/src/main/java/org/wamblee/xml/XPathContext.java | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/support/general/src/main/java/org/wamblee/xml/SimpleNamespaceContext.java b/support/general/src/main/java/org/wamblee/xml/SimpleNamespaceContext.java index d5ff9498..85efeb08 100644 --- a/support/general/src/main/java/org/wamblee/xml/SimpleNamespaceContext.java +++ b/support/general/src/main/java/org/wamblee/xml/SimpleNamespaceContext.java @@ -49,6 +49,10 @@ public class SimpleNamespaceContext implements NamespaceContext { prefixMap = new HashMap(); } + /** + * Creation of the namespace context for use with static imports. + * @return Empty namespace context. + */ public static SimpleNamespaceContext namespaces() { return new SimpleNamespaceContext(); } diff --git a/support/general/src/main/java/org/wamblee/xml/XPathContext.java b/support/general/src/main/java/org/wamblee/xml/XPathContext.java index 42fa99d4..dc7869a8 100644 --- a/support/general/src/main/java/org/wamblee/xml/XPathContext.java +++ b/support/general/src/main/java/org/wamblee/xml/XPathContext.java @@ -35,6 +35,11 @@ public class XPathContext { xpath.setNamespaceContext(aContext); } + /** + * Creation of the XPath context for use with static imports. + * @param aContext Namespace context + * @return XPath context. + */ public static XPathContext xpathcontext(NamespaceContext aContext) { return new XPathContext(aContext); } -- 2.31.1