Package gov.nasa.pds.harvest.util.xml
Class XPathCache
java.lang.Object
gov.nasa.pds.harvest.util.xml.XPathCache
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Inner class representing one cache record / item. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
XPathCache
public XPathCache()Constructor.
-
-
Method Details
-
isEmpty
public boolean isEmpty()Check if cache is empty.- Returns:
- check if cache is empty
-
add
Get an item to the cache.- Parameters:
fieldName
- Field namedataType
- data typexpe
- an XPath
-
getItems
Get all cached items.- Returns:
- All cached items
-