Class PageObjectSearchUtils
java.lang.Object
ru.cg.webbpm.studio.subsystems.page_designer.serialization.api.util.PageObjectSearchUtils
- Author:
- krylov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<PageObject>
findObjectInChildren
(PageObject start, String targetId, boolean withRemoved) static Optional<PageObject>
findRelativeObject
(PageObject start, String targetId) Finds object in current hierarchy that either has the given id, or has object with given id as a prototypefindRelativeObjectId
(PageObject start, String sourceId) Finds object in current hierarchy that either has the given id, or has object with given id as a prototype.
-
Constructor Details
-
PageObjectSearchUtils
public PageObjectSearchUtils()
-
-
Method Details
-
findRelativeObjectId
Finds object in current hierarchy that either has the given id, or has object with given id as a prototype. This is slightly optimized modification offindRelativeObject(PageObject, String)
, but can only provide object id- Parameters:
start
- where to start searchingsourceId
- object id or prototype id- Returns:
- optional of object id
-
findRelativeObject
Finds object in current hierarchy that either has the given id, or has object with given id as a prototype- Parameters:
start
- where to start searchingtargetId
- object id or prototype id- Returns:
- optional of page object
-
findObjectInChildren
public static Optional<PageObject> findObjectInChildren(PageObject start, String targetId, boolean withRemoved)
-