final class ListModelValue extends ModelValue
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ModelNode> |
list |
static ModelNode[] |
NO_NODES |
UNDEFINED| Modifier | Constructor and Description |
|---|---|
(package private) |
ListModelValue() |
(package private) |
ListModelValue(java.io.DataInput in) |
(package private) |
ListModelValue(java.util.List<ModelNode> list) |
private |
ListModelValue(ListModelValue orig) |
| Modifier and Type | Method and Description |
|---|---|
(package private) ModelNode |
addChild() |
(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() |
boolean |
equals(ListModelValue other)
Determine whether this object is equal to another.
|
boolean |
equals(java.lang.Object 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(int index) |
(package private) boolean |
has(int index) |
int |
hashCode() |
(package private) ModelNode |
insertChild(int index) |
(package private) ModelValue |
protect() |
(package private) ModelNode |
removeChild(int index) |
(package private) ModelNode |
requireChild(int index) |
(package private) ModelValue |
resolve() |
(package private) void |
writeExternal(java.io.DataOutput out) |
asBigDecimal, asBigInteger, asBytes, asDouble, asDouble, asExpression, asType, clone, getChild, getKeys, getType, has, indent, jsonEscape, quote, removeChild, requireChild, toJSONString, toString, writeJSONString, writeStringpublic static final ModelNode[] NO_NODES
private final java.util.List<ModelNode> list
ListModelValue()
private ListModelValue(ListModelValue orig)
ListModelValue(java.util.List<ModelNode> list)
ListModelValue(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 ModelValuelong asLong()
asLong in class ModelValuelong asLong(long defVal)
asLong in class ModelValueint asInt()
asInt in class ModelValueint asInt(int defVal)
asInt 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 ModelValueModelNode asObject()
asObject in class ModelValueModelNode getChild(int index)
getChild in class ModelValueModelNode addChild()
addChild in class ModelValueModelNode insertChild(int index)
insertChild in class ModelValueModelNode removeChild(int index)
removeChild in class ModelValuejava.util.List<ModelNode> asList()
asList in class ModelValueModelValue copy()
copy in class ModelValueModelValue resolve()
resolve 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(ListModelValue other)
other - the other objecttrue if they are equal, false otherwisepublic int hashCode()
hashCode in class ModelValueboolean has(int index)
has in class ModelValueModelNode requireChild(int index) throws java.util.NoSuchElementException
requireChild in class ModelValuejava.util.NoSuchElementException