Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getXPathAPI (0.06 sec)

  1. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            for (final Map.Entry<String, String> entry : fieldRuleMap.entrySet()) {
                final String path = entry.getValue();
                try {
                    final XPathEvaluationResult<?> xObj = getXPathAPI().eval(document, path);
                    switch (xObj.type()) {
                    case BOOLEAN:
                        final Boolean b = (Boolean) xObj.value();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

            if (StringUtil.isNotBlank(tagName) && StringUtil.isNotBlank(attrName)) {
                childUrlRuleMap.put(tagName, attrName);
            }
        }
    
        protected XPathAPI getXPathAPI() {
            XPathAPI cachedXPathAPI = xpathAPI.get();
            if (cachedXPathAPI == null) {
                cachedXPathAPI = new XPathAPI();
                xpathAPI.set(cachedXPathAPI);
            }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlExtractor.java

                xpathAPI.remove();
            }
        }
    
        protected String[] getStringsByXPath(final Document document, final String path) {
            try {
                final XPathEvaluationResult<?> xObj = getXPathAPI().eval(document, path);
                switch (xObj.type()) {
                case BOOLEAN:
                    final Boolean b = (Boolean) xObj.value();
                    return new String[] { b.toString() };
                case NUMBER:
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlXpathExtractor.java

                parser.parse(inputSource);
                final Document document = parser.getDocument();
    
                final StringBuilder buf = new StringBuilder(255);
                final XPathNodes nodeList = getXPathAPI().selectNodeList(document, targetNodePath);
                for (int i = 0; i < nodeList.size(); i++) {
                    final Node node = nodeList.get(i);
                    buf.append(node.getTextContent()).append(' ');
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

            final XPath xPathApi = getXPathAPI().createXPath(f -> {});
            xPathApi.setNamespaceContext(new DefaultNamespaceContext(doc.getNodeType() == Node.DOCUMENT_NODE ? doc.getDocumentElement() : doc));
            return xPathApi.evaluateExpression(xpath, doc, XPathNodes.class);
        }
    
        protected XPathAPI getXPathAPI() {
            try {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformer.java

            for (final Map.Entry<String, String> entry : fieldRuleMap.entrySet()) {
                final String path = entry.getValue();
                try {
                    final XPathEvaluationResult<?> xObj = getXPathAPI().eval(document, path);
                    switch (xObj.type()) {
                    case BOOLEAN:
                        final Boolean b = (Boolean) xObj.value();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top