the underlying Java org.jboss.dmr.ModelNode
Adds multiple key / value pairs to this model node:
Adds multiple key / value pairs to this model node:
node += ( "flag" -> true, "hello" -> "world", "answer" -> 42, "child" -> ModelNode( "inner-a" -> 123, "inner-b" -> "test", "deep-inside" -> ModelNode("foo" -> "bar"), "deep-list" -> List( ModelNode("one" -> 1), ModelNode("two" -> 2), ModelNode("three" -> 3) ) ) )
the key / value pairs
Returns the model node associated with a path, or throws a NoSuchElementException
if the path is
not contained in the model node.
Returns the model node associated with a path, or throws a NoSuchElementException
if the path is
not contained in the model node.
Returns the value of this model node as Some(BigInt)
or None
if the underlying node does not support conversion to BigInt
Returns the value of this model node as Some(BigInt)
or None
if the underlying node does not support conversion to BigInt
Returns the value of this model node as Some(Boolean)
or None
if the underlying node does not support conversion to Boolean
Returns the value of this model node as Some(Boolean)
or None
if the underlying node does not support conversion to Boolean
Returns the value of this model node as Some(Double)
or None
if the underlying node does not support conversion to Double
Returns the value of this model node as Some(Double)
or None
if the underlying node does not support conversion to Double
Returns the value of this model node as Some(Int)
or None
if the underlying node does not support conversion to Int
Returns the value of this model node as Some(Int)
or None
if the underlying node does not support conversion to Int
Returns the value of this model node as Some(List[ModelNode])
or None
if the underlying node does not support conversion to List[ModelNode]
Returns the value of this model node as Some(List[ModelNode])
or None
if the underlying node does not support conversion to List[ModelNode]
Returns the value of this model node as Some(Long)
or None
if the underlying node does not support conversion to Long
Returns the value of this model node as Some(Long)
or None
if the underlying node does not support conversion to Long
Returns the value of this model node as Some(String)
or None
if the underlying node does not support conversion to String
Returns the value of this model node as Some(String)
or None
if the underlying node does not support conversion to String
Sets the address for this model node.
Sets the address for this model node. An address can be specified using (String, String)
tuple separated
by "/". Thus an expression of ("subsystem" -> "datasources") / ("data-source" -> "ExampleDS")
will be
implicitly converted to an address.
the address
this model node with the address st
Tests whether this model node contains a binding for a path.
Tests whether this model node contains a binding for a path.
Delegates to underlying.equals()
if obj
is also a model node, returns false otherwise
Delegates to underlying.equals()
if obj
is also a model node, returns false otherwise
Optionally returns the value associated with a path.
Optionally returns the value associated with a path.
Returns the model node associated with a path, or a default value if the path is not contained in the model node.
Returns the model node associated with a path, or a default value if the path is not contained in the model node.
the path
a computation that yields a default value in case no binding for path
is found in the model node.
the value associated with path
if it exists, otherwise the result of the default
computation.
Delegates to underlying.hashCode()
Delegates to underlying.hashCode()
Traversals the model node tree using inorder
Traversals the model node tree using inorder
Returns the keys for this model node
Returns the keys for this model node
Sets the operation for this model node.
Sets the operation for this model node. The operation can be specified as a scala.Symbol which will be implicitly converted to an operation.
the operation.
this model node with the operation set
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Delegates to underlying.toString
Delegates to underlying.toString
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Returns the underlying Java mode node
Returns the underlying Java mode node
Adds a given key/value pair.
Adds a given key/value pair. Supports the following types:
the name
the value
if the type is not supported
Returns the values for this model node
Returns the values for this model node
Implementation for complex model nodes.