Class Availability
java.lang.Object
com.kosdev.kos.ext.dispense.pipeline.beverage.graph.Availability
Availability information for a given node in the beverage graph.
This exposes the following information:
visible: True if the entity is visible, false if not visible.available: True if the entity is available. In the case of a beverage this indicates the beverage is available to pour. In the case of a brand or group this indicates the brand or group contains at least one available beverage.
- Since:
- 1
- Version:
- 1
-
Constructor Summary
ConstructorsConstructorDescriptionAvailability(GraphNode node) Create a new availability entry for the specified node. -
Method Summary
Modifier and TypeMethodDescriptiongetAltId()Returns the node's altId.com.kosdev.kos.commons.util.json.JsonViewWrapperReturns the node's client data.getId()Returns the node's ID.getNode()Returns the underlying node.getNote()Bubble up node note fieldReturn the properties for the availability node.Return the list of tagged id's for this node.booleanReturns the node's availability.booleanReturns the node's visibility.
-
Constructor Details
-
Availability
Create a new availability entry for the specified node.- Parameters:
node- the node to wrap- Since:
- 1
-
-
Method Details
-
getId
Returns the node's ID.- Since:
- 1
-
getAltId
Returns the node's altId.- Since:
- 1
-
isVisible
public boolean isVisible()Returns the node's visibility.- Since:
- 1
-
isAvailable
public boolean isAvailable()Returns the node's availability.- Since:
- 1
-
getTaggedIds
Return the list of tagged id's for this node. These are id's that are somehow related to this node.- Since:
- 1
-
getNote
Bubble up node note field- Since:
- 1
-
getClientData
public com.kosdev.kos.commons.util.json.JsonViewWrapper getClientData()Returns the node's client data.- Since:
- 1
-
getNode
Returns the underlying node.- Since:
- 1
-
getProperties
Return the properties for the availability node.- Since:
- 1
-