From: erik Date: Fri, 4 Mar 2011 22:36:56 +0000 (+0000) Subject: (no commit message) X-Git-Tag: BEFORE_SVN_TO_GIT~18 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=4360e4098b17650629a542b855b41b4d6b572fbc;p=utils --- 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); }