final class ObjectModelValue extends ModelValue
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,ModelNode> |
map |
UNDEFINED| Modifier | Constructor and Description |
|---|---|
protected |
ObjectModelValue() |
(package private) |
ObjectModelValue(java.io.DataInput in) |
private |
ObjectModelValue(java.util.Map<java.lang.String,ModelNode> map) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
asBoolean() |
(package private) boolean |
asBoolean(boolean defVal) |
(package private) int |
asInt() |
(package private) int |
asInt(int defVal) |
(package private) java.util.List<ModelNode> |
asList() |
(package private) long |
asLong() |
(package private) long |
asLong(long defVal) |
(package private) ModelNode |
asObject() |
(package private) Property |
asProperty() |
(package private) java.util.List<Property> |
asPropertyList() |
(package private) java.lang.String |
asString() |
(package private) ModelValue |
copy() |
(package private) ModelValue |
copy(boolean resolve) |
boolean |
equals(java.lang.Object other)
Determine whether this object is equal to another.
|
boolean |
equals(ObjectModelValue other)
Determine whether this object is equal to another.
|
(package private) void |
format(java.io.PrintWriter writer,
int indent,
boolean multiLineRequested)
Formats the current value object as part of a DMR string.
|
(package private) void |
formatAsJSON(java.io.PrintWriter writer,
int indent,
boolean multiLineRequested)
Formats the current value object as part of a JSON string.
|
(package private) ModelNode |
getChild(java.lang.String name) |
(package private) java.util.Set<java.lang.String> |
getKeys() |
(package private) boolean |
has(java.lang.String key) |
int |
hashCode() |
(package private) ModelValue |
protect() |
(package private) ModelNode |
removeChild(java.lang.String name) |
(package private) ModelNode |
requireChild(java.lang.String name) |
(package private) ModelValue |
resolve() |
(package private) void |
writeExternal(java.io.DataOutput out) |
addChild, asBigDecimal, asBigInteger, asBytes, asDouble, asDouble, asExpression, asType, clone, getChild, getType, has, indent, insertChild, jsonEscape, quote, removeChild, requireChild, toJSONString, toString, writeJSONString, writeStringprivate final java.util.Map<java.lang.String,ModelNode> map
protected ObjectModelValue()
private ObjectModelValue(java.util.Map<java.lang.String,ModelNode> map)
ObjectModelValue(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionvoid writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in class ModelValuejava.io.IOExceptionModelValue protect()
protect in class ModelValueModelNode asObject()
asObject in class ModelValueModelNode getChild(java.lang.String name)
getChild in class ModelValueModelNode removeChild(java.lang.String name)
removeChild in class ModelValueint asInt()
asInt in class ModelValueint asInt(int defVal)
asInt in class ModelValuelong asLong()
asLong in class ModelValuelong asLong(long defVal)
asLong in class ModelValueboolean asBoolean()
asBoolean in class ModelValueboolean asBoolean(boolean defVal)
asBoolean in class ModelValueProperty asProperty()
asProperty in class ModelValuejava.util.List<Property> asPropertyList()
asPropertyList in class ModelValueModelValue copy()
copy in class ModelValueModelValue resolve()
resolve in class ModelValueModelValue copy(boolean resolve)
java.util.List<ModelNode> asList()
asList in class ModelValuejava.util.Set<java.lang.String> getKeys()
getKeys in class ModelValuejava.lang.String asString()
asString in class ModelValuevoid format(java.io.PrintWriter writer,
int indent,
boolean multiLineRequested)
ModelValueformat in class ModelValuewriter - A PrintWriter instance containing the generated DMR string representation.indent - The number of tabs to indent the current generated string.multiLineRequested - Flag indicating whether or not the string should begin on a new line.void formatAsJSON(java.io.PrintWriter writer,
int indent,
boolean multiLineRequested)
ModelValueformatAsJSON in class ModelValuewriter - A PrintWriter instance containing the JSON string.indent - The number of tabs to indent the current generated string.multiLineRequested - Flag that indicates whether or not the string should
begin on a new line.public boolean equals(java.lang.Object other)
equals in class ModelValueother - the other objecttrue if they are equal, false otherwisepublic boolean equals(ObjectModelValue other)
other - the other objecttrue if they are equal, false otherwisepublic int hashCode()
hashCode in class ModelValueboolean has(java.lang.String key)
has in class ModelValueModelNode requireChild(java.lang.String name) throws java.util.NoSuchElementException
requireChild in class ModelValuejava.util.NoSuchElementException