Package com.ptc.transformation.filter
Class XMLLookUpService
java.lang.Object
com.ptc.transformation.filter.XMLLookUpService
- Direct Known Subclasses:
XMLLookUpService2
Service to interact with XMLDocument to interact with Application developers
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionCollection<com.ptc.transformation.filter.XMLFilterEntry>getXMLFilterEntries(String rootTag, Map<String, Collection<String>> filterEntries, boolean removeFiltered) returnsXMLFilterEntryfor a given root tag by querying based on XPaths and values sent.
-
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.TransformationExceptionreturnsXMLFilterEntryfor 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 whichXMLFilterEntryinstances are fetchedfilterEntries- 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:
WTExceptionWTPropertyVetoException-
Supported API: truecom.ptc.transformation.core.TransformationException
-