Interface BrowsePublisher.NodeBuilder

All Known Implementing Classes:
RootBrowsePublisher.ResultBuilder
Enclosing interface:
BrowsePublisher

public static interface BrowsePublisher.NodeBuilder
Configures a node before it is added to the results.
  • Method Details

    • creationTime

      BrowsePublisher.NodeBuilder creationTime(Instant creationTime)
      Sets when the node was created.
      Parameters:
      creationTime - the creation time.
      Returns:
      this builder.
    • retiredTime

      BrowsePublisher.NodeBuilder retiredTime(Instant retiredTime)
      Sets when the node was retired.
      Parameters:
      retiredTime - the retirement time.
      Returns:
      this builder.
    • metadata

      Sets the node's metadata.
      Parameters:
      metadata - the metadata point.
      Returns:
      this builder.
    • displayPath

      BrowsePublisher.NodeBuilder displayPath(Path displayPath)
      Sets the human-readable display path.
      Parameters:
      displayPath - the display path.
      Returns:
      this builder.
    • hasChildren

      BrowsePublisher.NodeBuilder hasChildren(boolean hasChildren)
      Sets whether the node has child nodes.
      Parameters:
      hasChildren - true if it does.
      Returns:
      this builder.
    • add

      void add()
      Adds the configured node to the results.