Package org.geotools.xsd.impl.jxpath
Class JXPathUtils
- Object
-
- JXPathUtils
-
public class JXPathUtils extends Object
Contains utility methods to create safeJXPathContext
objects.
-
-
Constructor Summary
Constructors Constructor Description JXPathUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JXPathContext
newSafeContext(Object contextBean, boolean lenient)
Creates aJXPathContext
that disables calling Java methods from XPath expressions.static JXPathContext
newSafeContext(Object contextBean, boolean lenient, NamespaceSupport ns, boolean declared)
Creates aJXPathContext
that disables calling Java methods from XPath expressions.
-
-
-
Method Detail
-
newSafeContext
public static JXPathContext newSafeContext(Object contextBean, boolean lenient)
Creates aJXPathContext
that disables calling Java methods from XPath expressions.- Parameters:
contextBean
- the root node objectlenient
- whether the context is in lenient mode- Returns:
- the context
-
newSafeContext
public static JXPathContext newSafeContext(Object contextBean, boolean lenient, NamespaceSupport ns, boolean declared)
Creates aJXPathContext
that disables calling Java methods from XPath expressions.- Parameters:
contextBean
- the root node objectlenient
- whether the context is in lenient modens
- the namespacesdeclared
- true to include all declared prefixes; false for all active prefixes- Returns:
- the context
-
-