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 Summary
Modifier and TypeMethodDescriptionvoidadd()Adds the configured node to the results.creationTime(Instant creationTime) Sets when the node was created.displayPath(Path displayPath) Sets the human-readable display path.hasChildren(boolean hasChildren) Sets whether the node has child nodes.metadata(MetadataPoint metadata) Sets the node's metadata.retiredTime(Instant retiredTime) Sets when the node was retired.
-
Method Details
-
creationTime
Sets when the node was created.- Parameters:
creationTime- the creation time.- Returns:
- this builder.
-
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
Sets the human-readable display path.- Parameters:
displayPath- the display path.- Returns:
- this builder.
-
hasChildren
Sets whether the node has child nodes.- Parameters:
hasChildren-trueif it does.- Returns:
- this builder.
-
add
void add()Adds the configured node to the results.
-