Package com.sun.org.apache.xpath.internal.objects

Examples of com.sun.org.apache.xpath.internal.objects.XObject.bool()


                public boolean isNodeInclude(Node currentNode) {
                        XObject includeInResult;
                        try {
                                includeInResult = xPathFuncHereAPI.eval(currentNode,
                                        xpathnode, str,prefixResolver);
                                return includeInResult.bool();
                        } catch (TransformerException e) {
                Object[] eArgs = {currentNode};
                                throw new XMLSecurityRuntimeException("signature.Transform.node", eArgs, e);
                        }
                        catch (Exception e) {
View Full Code Here


          else
              xobj = xpathInternal.execute(xpathSupport, contextNode, prefixResolver);

          switch (xobj.getType()) {
          case XObject.CLASS_BOOLEAN:
            return thread_context.getRuntime().newBoolean(xobj.bool());
          case XObject.CLASS_NUMBER:
            return thread_context.getRuntime().newFloat(xobj.num());
          case XObject.CLASS_NODESET:
            NodeList nodeList = xobj.nodelist();
            XmlNodeSet xmlNodeSet = (XmlNodeSet) NokogiriService.XML_NODESET_ALLOCATOR.allocate(getRuntime(), getNokogiriClass(getRuntime(), "Nokogiri::XML::NodeSet"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.