Class XMLLookUpService

java.lang.Object
com.ptc.transformation.filter.XMLLookUpService
Direct Known Subclasses:
XMLLookUpService2

public class XMLLookUpService extends Object
Service to interact with XMLDocument to interact with Application developers

Supported API: true

Extendable: false
  • Method Details

    • getXMLFilterEntries

      public Collection<com.ptc.transformation.filter.XMLFilterEntry> getXMLFilterEntries(String rootTag, Map<String,Collection<String>> filterEntries, boolean removeFiltered) throws WTException, WTPropertyVetoException, com.ptc.transformation.core.TransformationException
      returns XMLFilterEntry for a given root tag by querying based on XPaths and values sent. This API is valid for Dependency filter processing only.
      Parameters:
      rootTag - Root tag for which XMLFilterEntry instances are fetched
      filterEntries - Filter entries, xpath and values in Java map. Keys are Xpaths and values are collection of values against a given XPath. Example: If you want to send Xpaths with multiple Ufids and master ufids following is the sample Collection

      Collection masterUfids = new HashSet<>(); masterUfids.add("mUfid1"); masterUfids.add("mUfid2"); Collection ufids = new HashSet<>(); ufids.add("ufid1"); ufids.add("ufid2"); filterEntries.put("WTPartUsageLink/uses/ObjectReference/ufid", masterUfids); filterEntries.put("WTPartUsageLink/usedBy/ObjectReference/ufid", ufids);


      Filter entries which are defined as part XMLFilterEntries are valid. Anything other than such XPaths should be registered in XPath filter xml.
      removeFiltered - This flag indicates to exclude already filtered entries
      Returns:
      XMLFilterEntry
      Throws:
      WTException
      WTPropertyVetoException -
      Supported API: true
      com.ptc.transformation.core.TransformationException