java.lang.Object
ru.cg.webbpm.studio.subsystems.page_designer.serialization.api.util.PageObjectSearchUtils

public class PageObjectSearchUtils extends Object
Author:
krylov
  • Constructor Details

    • PageObjectSearchUtils

      public PageObjectSearchUtils()
  • Method Details

    • findRelativeObjectId

      public static Optional<String> findRelativeObjectId(PageObject start, String sourceId)
      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 of findRelativeObject(PageObject, String), but can only provide object id
      Parameters:
      start - where to start searching
      sourceId - object id or prototype id
      Returns:
      optional of object id
    • findRelativeObject

      public 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 prototype
      Parameters:
      start - where to start searching
      targetId - object id or prototype id
      Returns:
      optional of page object
    • findObjectInChildren

      public static Optional<PageObject> findObjectInChildren(PageObject start, String targetId, boolean withRemoved)