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 TypeMethodDescriptionvoidadd()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.NodeBuilderSets the creation time of the node being built. This value represents the point in time when the node was created.- Specified by:
creationTimein interfaceBrowsePublisher.NodeBuilder- Parameters:
creationTime- the creation time of the node as anInstant- Returns:
- the
BrowsePublisher.NodeBuilderinstance for method chaining
-
retiredTime
Description copied from interface:BrowsePublisher.NodeBuilderSets 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:
retiredTimein interfaceBrowsePublisher.NodeBuilder- Parameters:
retiredTime- the time the node was retired as anInstant- Returns:
- the
BrowsePublisher.NodeBuilderinstance for method chaining
-
metadata
Description copied from interface:BrowsePublisher.NodeBuilderSets 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:
metadatain interfaceBrowsePublisher.NodeBuilder- Parameters:
metadata- theMetadataPointcontaining metadata information such as value, quality, timestamp, and source- Returns:
- the
BrowsePublisher.NodeBuilderinstance for method chaining
-
displayPath
Description copied from interface:BrowsePublisher.NodeBuilderSets 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:
displayPathin interfaceBrowsePublisher.NodeBuilder- Parameters:
displayPath- thePathrepresenting the display path- Returns:
- the
BrowsePublisher.NodeBuilderinstance for method chaining
-
hasChildren
Description copied from interface:BrowsePublisher.NodeBuilderSets whether the node being built has child nodes.- Specified by:
hasChildrenin interfaceBrowsePublisher.NodeBuilder- Parameters:
hasChildren- a boolean indicating if the node has child nodes; true if the node has children, false otherwise- Returns:
- the
BrowsePublisher.NodeBuilderinstance for method chaining
-
add
public void add()Description copied from interface:BrowsePublisher.NodeBuilderFinalizes 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:
addin interfaceBrowsePublisher.NodeBuilder
-