Package org.geotools.xsd.impl.jxpath
Class JXPathUtils
- Object
-
- JXPathUtils
-
public class JXPathUtils extends Object
Contains utility methods to create safeJXPathContextobjects.
-
-
Constructor Summary
Constructors Constructor Description JXPathUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JXPathContextnewSafeContext(Object contextBean, boolean lenient)Creates aJXPathContextthat disables calling Java methods from XPath expressions.static JXPathContextnewSafeContext(Object contextBean, boolean lenient, NamespaceSupport ns, boolean declared)Creates aJXPathContextthat disables calling Java methods from XPath expressions.
-
-
-
Method Detail
-
newSafeContext
public static JXPathContext newSafeContext(Object contextBean, boolean lenient)
Creates aJXPathContextthat 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 aJXPathContextthat 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
-
-