Looks up a Value based on Path
Looks up a Value based on Path
Example: val v = someValue("first" \ "second" \ "third")
Looks up a Value by name in the children.
Looks up a Value by name in the children.
Throws an exception if invoked on anything except Obj
Casts to Arr or throws an exception if not an Arr
Casts to Arr or throws an exception if not an Arr
Convenience method for asNum.value
Convenience method for asNum.value
Casts to Bool or throws an exception if not a Bool
Casts to Bool or throws an exception if not a Bool
Convenience method for asBool.value
Convenience method for asBool.value
Convenience method for asObj.value
Convenience method for asObj.value
Casts to Num or throws an exception if not a Num
Casts to Num or throws an exception if not a Num
Casts to NumDec or throws an exception if not a NumDec
Casts to NumDec or throws an exception if not a NumDec
Casts to NumInt or throws an exception if not a NumInt
Casts to NumInt or throws an exception if not a NumInt
Casts to Obj or throws an exception if not an Obj
Casts to Obj or throws an exception if not an Obj
Casts to Str or throws an exception if not a Str
Casts to Str or throws an exception if not a Str
Convenience method for asStr.value
Convenience method for asStr.value
Safely casts this Value as the specified ValueType.
Safely casts this Value as the specified ValueType. Throws an exception if not a match.
the return type
Convenience method for asArr.value
Convenience method for asArr.value
Applies the filter recursively to this value beginning on the leafs working backward up the tree back to the root.
Applies the filter recursively to this value beginning on the leafs working backward up the tree back to the root.
the filter to apply
Option[Value]
Looks up a Value based on Path
Looks up a Value based on Path
Example: val o: Option[Value] = someValue("first" \ "second" \ "third")
Looks up a Value by name in the children.
Looks up a Value by name in the children.
Casts to Arr if it's of Arr type or returns None
Casts to Arr if it's of Arr type or returns None
Convenience method for getNum.map(_.value)
Convenience method for getNum.map(_.value)
Casts to Bool if it's of Bool type or returns None
Casts to Bool if it's of Bool type or returns None
Convenience method for getBool.map(_.value)
Convenience method for getBool.map(_.value)
Convenience method for getObj.map(_.value)
Convenience method for getObj.map(_.value)
Casts to Num if it's of Num type or returns None
Casts to Num if it's of Num type or returns None
Casts to Obj if it's of Obj type or returns None
Casts to Obj if it's of Obj type or returns None
Looks up a Value by name in the children or creates a new Obj if it doesn't exist.
Looks up a Value by name in the children or creates a new Obj if it doesn't exist.
Casts to Str if it's of Str type or returns None
Casts to Str if it's of Str type or returns None
Convenience method for getStr.map(_.value)
Convenience method for getStr.map(_.value)
Safely casts this Value as the specified ValueType.
Safely casts this Value as the specified ValueType. Returns None if it's a different type.
the value type
Option[V]
Convenience method for getArr.map(_.value)
Convenience method for getArr.map(_.value)
True if this is an Arr
True if this is an Arr
True if this is a Bool
True if this is a Bool
True if this is a Null
True if this is a Null
True if this is a Num
True if this is a Num
True if this is an Obj
True if this is an Obj
True if this is a Str
True if this is a Str
Merges a Value at the specified path
Merges a Value at the specified path
the value to merge
the path (defaults to Path.empty)
root Value after merge
Modifies the value at the specified path and returns back a new root Value with the modified path.
Modifies the value at the specified path and returns back a new root Value with the modified path.
Note: We use the term "modify" here from an immutable standpoint. The original Value will not change.
the path to modify
the function that takes the current Value and returns the modified Value
new root Value representing the changes
Convenience functionality for #modify to remove the value at a specific path.
Convenience functionality for #modify to remove the value at a specific path.
the path to remove
new root Value representing the changes
Convenience functionality for #modify to set a specific value at a path.
Convenience functionality for #modify to set a specific value at a path.
the path to replace
the new value to set
new root Value representing the changes
The type of value
Bool represents a boolean value