Class PathAttributeList


  • public class PathAttributeList
    extends Object
    Author:
    Russell Petty (GeoScience Victoria)
    • Constructor Detail

      • PathAttributeList

        public PathAttributeList()
    • Method Detail

      • put

        public void put​(String key,
                        String xpath,
                        Attribute attribute)
        Store information for labelled attributes.
        Parameters:
        key - AttributeMapping label
        xpath - full input xpath from web service including itemXpath + instanceXpath
        attribute - Attribute instance that is created for the AttributeMapping
      • getPath

        public String getPath​(String label)
        Get full input xpath based on the label.
        Parameters:
        label - AttributeMapping label
        Returns:
        full input xpath from web service including itemXpath + instanceXpath
      • get

        public List<PathAttributeList.Pair> get​(String key)
        Return list of matching source input xpath - Attribute pair based on the label.
        Parameters:
        key - The attribute label
        Returns:
        full input xpath - Attribute pair