AbsolutePath
Representation of an absolute path as a subtype of Path and as a list of absolute path fragments. Absolute paths are always "resolved" (i.e. they contain no unnecessary fragments such as current path fragments or consecutive recursive wildcard fragments).
Absolute paths represent locations of data from a root location: e.g. the location of a value within a value where the outer value is seen as the "root" value.
Unlike regular paths, the root fragment is always implicit in absolute paths and is not visible in the list of fragments.
Constructors
Creates an absolute path from a list of fragments.
Creates an absolute path from a path path. The path will be resolved against the root path.
Creates an absolute path from a string representation of a path stringPath. The string will first be converted into a path and then resolved against the root path.
Properties
Functions
Utility function which converts a path where table rows are indexed by their id into a path where said rows are indexed by their index in the corresponding table within the provided form value formValue (with schema formSchema).
Utility function which converts a path where table rows are indexed by their index into a path where said rows are indexed by their id in the corresponding table within the provided form value formValue (with schema formSchema).
Returns the fragment of this path with index index.
Returns the fragment of this path with index index.
Returns whether this path has at least one wildcard (either recursive or not).
Returns whether this path has at least one recursive wildcard.
Returns whether this path has at least one non-recursive wildcard.
Returns an iterator over the path's fragments.
Returns an absolute path representing the parent of this path. Equivalent to resolve("..").
Returns the absolute path resulting from resolving the path in string notation stringPath against this path. Equivalent to resolve(stringPath).
Returns the absolute path resulting from appending fragment to this path.
Returns the absolute path resulting from resolving path against this path. Equivalent to resolve(path).
Returns the path resulting from appending fragment to this path. Equivalent to append(fragment).
Returns a relative path representing this path, but relative to path. Note that path will be converted to an absolute path when it isn't one.
Returns the absolute path resulting from resolving a list of paths in string notation stringPaths against this path.
Returns the absolute path resulting from resolving a list of paths against this path.
Returns the result of resolving this path. Resolving the path removes unnecessary fragments such as the current path fragment.
Converts the receiver path into an absolute path, if it wasn't one already.