Class XPathCache

java.lang.Object
gov.nasa.pds.harvest.util.xml.XPathCache

public class XPathCache extends Object
XPath cache is used to map a field in a PDS4 label (by its XPath) to a registry field name. This is a legacy feature which might be removed in future releases.
Author:
karpenko
  • Constructor Details

    • XPathCache

      public XPathCache()
      Constructor.
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Check if cache is empty.
      Returns:
      check if cache is empty
    • add

      public void add(String fieldName, String dataType, XPathExpression xpe)
      Get an item to the cache.
      Parameters:
      fieldName - Field name
      dataType - data type
      xpe - an XPath
    • getItems

      public List<XPathCache.Item> getItems()
      Get all cached items.
      Returns:
      All cached items