org.geotools.data.complex
Class PathAttributeList

Object
  extended by PathAttributeList

public class PathAttributeList
extends Object

Author:
Russell Petty (GeoScience Victoria)

Nested Class Summary
 class PathAttributeList.Pair
           
 
Constructor Summary
PathAttributeList()
           
 
Method Summary
 List<PathAttributeList.Pair> get(String key)
          Return list of matching source input xpath - Attribute pair based on the label.
 String getPath(String label)
          Get full input xpath based on the label.
 void put(String key, String xpath, Attribute attribute)
          Store information for labelled attributes.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 1996-2014 Geotools. All Rights Reserved.