Interface Entity
- All Known Subinterfaces:
Node,Relationship
public interface Entity
Represents an entity in a hierarchical structure.
An entity is a basic unit in a structure that has an identifier, type,
physical ID, and attributes. Both nodes and relationships are entities that can be visited using a
StructureVisitor.
- Since:
- 2023-04-25
-
Method Summary
Modifier and TypeMethodDescriptionaccept(StructureVisitor visitor) Returns all attributes selected.intgetId()Returns the Physical ID of this entity.getType()Returns the type for this entity.
-
Method Details
-
getId
int getId()- Returns:
- A unique id for this Entity. The ID is only unique within a specific structure and should not be used for any long term usage / storage.
-
getPhysicalId
String getPhysicalId()Returns the Physical ID of this entity.- Returns:
- The physical ID of this entity
-
getType
String getType()Returns the type for this entity.- Returns:
- The type for this entity
-
getAttributes
Returns all attributes selected.- Returns:
- A readonly map that contains all selected attribute values.
-
accept
-