Utility class for node and config/attribute paths.

Static Properties

invalidChar → RegExp

Regular Expression for invalid characters in paths.

final
invalidNameChar → RegExp

Regular Expression for invalid characters in names.

final

Static Methods

escapeName(String str) → String

getValidAttributePath(Object path, [ String basePath ]) Path

getValidConfigPath(Object path, [ String basePath ]) Path

getValidNodePath(Object path, [ String basePath ]) Path

getValidPath(Object path, [ String basePath ]) Path

Constructors

Path(String path)

Properties

isAbsolute → bool

Is this an absolute path?

read-only
isAttribute → bool

Is this an attribute?

read-only
isConfig → bool

Is this a config?

read-only
isNode → bool

Is this a node?

read-only
isRoot → bool

Is this the root path?

read-only
name → String

The name of this path. This is the last component of the path. For the root node, this is '/'

read / write
parent Path

Get the parent of this path.

read-only
parentPath → String

Real Parent Path

read / write
path → String

Real Path

read / write
valid → bool

If this path is invalid, this will be false. Otherwise this will be true.

read / write
hashCode → int

The hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

child(String name) Path

Get a child of this path.

mergeBasePath(String base, [ bool force = false ]) → void

Merges the base path with this path.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited