object EntityPath
SEPARATOR
: String
[Get] |
Signature
const val SEPARATOR: String |
childOf
(
parent
, name
)
|
Returns the direct child of parent whose Named.name equals name, or null.
Signature
fun childOf(parent: Entity, name: String): Entity? Parameters parent: Entityname: StringReturns Entity? |
find
(
path
, dataModel
)
|
Resolve a path against dataModel.
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
)
| |
pathOf
(
entity
)
|
The absolute path of entity obtained by walking up TransformParent and joining Named.name values. Returns null if any ancestor (including entity) lacks Named, if entity 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? |