Package org.jboss.hal.dmr
Class NamedNode
- java.lang.Object
-
- org.jboss.hal.dmr.ModelNode
-
- org.jboss.hal.dmr.NamedNode
-
- All Implemented Interfaces:
Cloneable,NamedObject
- Direct Known Subclasses:
Channel,Content,DataSource,DeploymentResource,HasServersNode,MacroOptions,Server,StatisticsResource,Subsystem
public class NamedNode extends ModelNode implements NamedObject
A model node with a name.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelNodeasModelNode()booleanequals(Object o)Determine whether this object is equal to another.StringgetName()inthashCode()Get the hash code of this node object.voidsetName(String name)StringtoString()Get a human-readable string representation of this model node, formatted nicely (possibly on multiple lines).voidupdate(ModelNode node)-
Methods inherited from class org.jboss.hal.dmr.ModelNode
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addEmptyList, addEmptyObject, addExpression, as, asBigDecimal, asBigInteger, asBoolean, asBoolean, asBytes, asDouble, asDouble, asInt, asInt, asList, asLong, asLong, asObject, asProperty, asPropertyList, asString, asType, clear, clone, equals, fromBase64, get, get, get, getFailureDescription, getType, has, has, hasDefined, hasDefined, isDefined, isFailure, keys, protect, remove, require, require, resolve, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setEmptyList, setEmptyObject, setExpression, setExpression, toBase64String, toJSONString, toJSONString, writeExternal
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
Description copied from class:ModelNodeDetermine whether this object is equal to another.
-
hashCode
public int hashCode()
Description copied from class:ModelNodeGet the hash code of this node object. Note that unless the value isModelNode.protect()ed, the hash code may change over time, thus making unprotected nodes unsuitable for use as hash table keys.
-
toString
public String toString()
Description copied from class:ModelNodeGet a human-readable string representation of this model node, formatted nicely (possibly on multiple lines).
-
getName
public String getName()
- Specified by:
getNamein interfaceNamedObject- Returns:
- the name of this named node
-
setName
public void setName(String name)
-
asModelNode
public ModelNode asModelNode()
- Returns:
- the model node of this named node
-
update
public void update(ModelNode node)
-
-