Class RootBrowsePublisher.ResultBuilder
java.lang.Object
com.inductiveautomation.historian.gateway.api.query.browsing.RootBrowsePublisher.ResultBuilder
- All Implemented Interfaces:
BrowsePublisher.NodeBuilder
- Enclosing class:
- RootBrowsePublisher
protected class RootBrowsePublisher.ResultBuilder
extends Object
implements BrowsePublisher.NodeBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add()
Finalizes the configuration of a node being built and adds it to the browsing structure.creationTime
(Instant creationTime) Sets the creation time of the node being built.displayPath
(Path displayPath) Sets the display path for the node being built.hasChildren
(boolean hasChildren) Sets whether the node being built has child nodes.metadata
(MetadataPoint metadata) Sets the metadata for the node being built.retiredTime
(Instant retiredTime) Sets the retired time of the node being built.
-
Constructor Details
-
ResultBuilder
-
-
Method Details
-
creationTime
Description copied from interface:BrowsePublisher.NodeBuilder
Sets the creation time of the node being built. This value represents the point in time when the node was created.- Specified by:
creationTime
in interfaceBrowsePublisher.NodeBuilder
- Parameters:
creationTime
- the creation time of the node as anInstant
- Returns:
- the
BrowsePublisher.NodeBuilder
instance for method chaining
-
retiredTime
Description copied from interface:BrowsePublisher.NodeBuilder
Sets the retired time of the node being built. The retired time indicates the point in time when the node is no longer active or relevant.- Specified by:
retiredTime
in interfaceBrowsePublisher.NodeBuilder
- Parameters:
retiredTime
- the time the node was retired as anInstant
- Returns:
- the
BrowsePublisher.NodeBuilder
instance for method chaining
-
metadata
Description copied from interface:BrowsePublisher.NodeBuilder
Sets the metadata for the node being built. The metadata provides additional properties or attributes associated with the node, such as contextual, temporal, or descriptive information.- Specified by:
metadata
in interfaceBrowsePublisher.NodeBuilder
- Parameters:
metadata
- theMetadataPoint
containing metadata information such as value, quality, timestamp, and source- Returns:
- the
BrowsePublisher.NodeBuilder
instance for method chaining
-
displayPath
Description copied from interface:BrowsePublisher.NodeBuilder
Sets the display path for the node being built. The display path represents a human-readable or logical path associated with the node for display or reference purposes.- Specified by:
displayPath
in interfaceBrowsePublisher.NodeBuilder
- Parameters:
displayPath
- thePath
representing the display path- Returns:
- the
BrowsePublisher.NodeBuilder
instance for method chaining
-
hasChildren
Description copied from interface:BrowsePublisher.NodeBuilder
Sets whether the node being built has child nodes.- Specified by:
hasChildren
in interfaceBrowsePublisher.NodeBuilder
- Parameters:
hasChildren
- a boolean indicating if the node has child nodes; true if the node has children, false otherwise- Returns:
- the
BrowsePublisher.NodeBuilder
instance for method chaining
-
add
public void add()Description copied from interface:BrowsePublisher.NodeBuilder
Finalizes the configuration of a node being built and adds it to the browsing structure. This method creates the configured node with its associated metadata, path, display path, and child status, then appends it to the result list for further use or processing.- Specified by:
add
in interfaceBrowsePublisher.NodeBuilder
-