Class Item

    • Constructor Detail

      • Item

        public Item​(String itemId)
        Create an Item with an id but no payload. This is a valid item for nodes which are configured so that ConfigureFormReader.isDeliverPayloads() is false.
        Parameters:
        itemId - The id if the item. It must be unique within the node unless overwriting and existing item. Passing null is the equivalent of calling Item().
      • Item

        public Item​(Item.ItemNamespace itemNamespace,
                    String itemId)
        Create an Item with an id but no payload. This is a valid item for nodes which are configured so that ConfigureFormReader.isDeliverPayloads() is false.
        Parameters:
        itemNamespace - the namespace of the item.
        itemId - The id if the item. It must be unique within the node unless overwriting and existing item. Passing null is the equivalent of calling Item().
      • Item

        public Item​(String itemId,
                    String nodeId)
        Create an Item with an id and a node id.

        Note: This is not valid for publishing an item to a node, only receiving from one as part of Message. If used to create an Item to publish (via LeafNode.publish(Item), the server may return an error for an invalid packet.

        Parameters:
        itemId - The id of the item.
        nodeId - The id of the node which the item was published to.
      • Item

        public Item​(Item.ItemNamespace itemNamespace,
                    String itemId,
                    String nodeId)
        Create an Item with an id and a node id.

        Note: This is not valid for publishing an item to a node, only receiving from one as part of Message. If used to create an Item to publish (via LeafNode.publish(Item), the server may return an error for an invalid packet.

        Parameters:
        itemNamespace - the namespace of the item.
        itemId - The id of the item.
        nodeId - The id of the node which the item was published to.