Class ESIMap

java.lang.Object
com.ptc.windchill.esi.map.ESIMap

public final class ESIMap extends Object
An abstraction for an ESI map file.

Supported API: true

Extendable: false
  • Constructor Details

    • ESIMap

      public ESIMap(String fileName) throws FileNotFoundException, IOException
      Loads the map file identified by the fileName argument. Only constructor for the class, thus insuring that every instance is properly initialized.

      Supported API: true
      Parameters:
      fileName - - The path & file information defining a map file's location.
      Throws:
      FileNotFoundException
      IOException
    • ESIMap

      public ESIMap(String mapID, List<Entry> attributes)
      Initialize the ESIMap object with Map id to be verified along with list of Entry objects.

      Supported API: true
      Parameters:
      mapID - - String id of map to be processed.
      attributes - - List of Entry objects.
  • Method Details

    • iterator

      public Iterator iterator()
      Returns an iterator for the Collection in the entries attribute.

      Supported API: true
      Returns:
      Iterator
    • getDefaultValue

      public String getDefaultValue(String targetAttributeName)
      Returns the default value of the input attribute from this map.

      Supported API: true
      Parameters:
      targetAttributeName - - the name of the target attribute as specified in the response meta information file.
      Returns:
      The default value of the input attribute as specified in the response meta information file.
    • getSoruceAttribute

      public String getSoruceAttribute(String targetAttributeName)
      For the input target attribute name, returns the source attribute name from the response meta information file.

      Supported API: true
      Parameters:
      targetAttributeName - - target attribute name.
      Returns:
      source attribute name.