WildFly Dynamic Model Representation Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 20: Line 20:
and it returns another ModelNode instance.
and it returns another ModelNode instance.


==Difference between add() and set()==
<tt>add()</tt> and <tt>set()</tt> change the internal state of the node differently.


=ModelType=
=ModelType=

Revision as of 03:51, 5 September 2016

Internal

ModelNode

The primary class of the public management API is org.jboss.dmr.ModelNode

A ModelNode is wrapper around a value. The value is typically some basic JDK type. A ModelNode exposes a getType() method. This method returns a value of type org.jboss.dmr.ModelType, which is an enum of all the valid types of values.

A ModelNode has keys.

The value associated with a key can be obtained with:

ModelNode.get(String)

and it returns another ModelNode instance.


ModelType

Property

ModelValue