object EntityPath
SEPARATOR
: String
[Get] |
Signature
const val SEPARATOR: String |
childOf
(
parent
, name
)
| |
find
(
path
, dataModel
)
|
Resolve a path against EntityPath.find.
Absolute paths begin with / and resolve from a root (an entity that has Named but no TransformParent, or whose TransformParent.entity is Entity.Companion.nullEntity). Relative paths have no leading / and are not supported on this entry point — use EntityPath.findRelative instead.
Signature
fun find(path: String, dataModel: DataModel? = EntityContext.getDataModel()): Entity? Parameters path: StringdataModel: DataModel?Returns Entity? |
findRelative
(
start
, path
)
|
Resolve EntityPath.findRelative relative to EntityPath.findRelative. The first segment names a direct child of EntityPath.findRelative.
Signature
fun findRelative(start: Entity, path: String): Entity? Parameters start: Entitypath: StringReturns Entity? |
pathOf
(
entity
)
|
The absolute path of EntityPath.pathOf obtained by walking up TransformParent and joining Named.name values. Returns null if any ancestor (including EntityPath.pathOf) lacks Named, if EntityPath.pathOf is Entity.Companion.nullEntity, or if any ancestor's name cannot be losslessly encoded as a path segment — i.e. is empty or contains EntityPath.SEPARATOR. The latter would alias to a different entity (or none) when fed back through EntityPath.find, so refusing to encode is the only safe behavior.
Signature
fun pathOf(entity: Entity): String? Parameters entity: EntityReturns String? |