Java XPath Get getCache()

Here you can find the source of getCache()

Description

get Cache

License

Open Source License

Declaration

private static Map<String, XPathExpression> getCache() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.HashMap;

import java.util.Map;

import javax.xml.xpath.XPathExpression;

public class Main {
    private static ThreadLocal<Map<String, XPathExpression>> sCache = new ThreadLocal<Map<String, XPathExpression>>();

    private static Map<String, XPathExpression> getCache() {
        Map<String, XPathExpression> mRetVal = sCache.get();
        if (mRetVal == null) {
            mRetVal = new HashMap<String, XPathExpression>();
            sCache.set(mRetVal);/*from   w  w w  .j a va  2  s .co m*/
        }
        return mRetVal;
    }
}

Related

  1. get(String path, Node e)
  2. getAttribute(String fileName, String xPathExpression, String attributeName)
  3. getBaseLocation(byte[] metadata)
  4. getBool(Node node, boolean def, XPathExpression expr)
  5. getCertificateFromKeyInfo(Node keyInfoNode)
  6. getCruxPagesXPath()
  7. getDefaultXPath()
  8. getDefaultXPathFactory()