final class PropertyModelValue extends ModelValue
| Modifier and Type | Field and Description |
|---|---|
private Property |
property |
static java.lang.String |
TYPE_KEY
JSON Key used to identify PropertyModelValue.
|
UNDEFINED| Constructor and Description |
|---|
PropertyModelValue(java.io.DataInput in) |
PropertyModelValue(Property property) |
PropertyModelValue(java.lang.String name,
ModelNode value) |
PropertyModelValue(java.lang.String key,
ModelNode node,
boolean copy) |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.util.List<ModelNode> |
asList() |
(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(java.lang.Object other) |
boolean |
equals(PropertyModelValue other) |
(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) 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 |
requireChild(java.lang.String name) |
(package private) ModelValue |
resolve() |
(package private) void |
writeExternal(java.io.DataOutput out) |
addChild, asBigDecimal, asBigInteger, asBoolean, asBoolean, asBytes, asDouble, asDouble, asExpression, asInt, asInt, asLong, asLong, asType, clone, format, getType, has, indent, insertChild, jsonEscape, quote, removeChild, removeChild, requireChild, toJSONString, toString, writeJSONString, writeStringpublic static final java.lang.String TYPE_KEY
private final Property property
PropertyModelValue(java.lang.String name,
ModelNode value)
PropertyModelValue(Property property)
PropertyModelValue(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionPropertyModelValue(java.lang.String key,
ModelNode node,
boolean copy)
void writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in class ModelValuejava.io.IOExceptionModelValue protect()
protect in class ModelValuejava.lang.String asString()
asString in class ModelValueProperty asProperty()
asProperty in class ModelValuejava.util.List<Property> asPropertyList()
asPropertyList in class ModelValueModelNode asObject()
asObject in class ModelValuejava.util.Set<java.lang.String> getKeys()
getKeys in class ModelValuejava.util.List<ModelNode> asList()
asList in class ModelValueModelNode getChild(java.lang.String name)
getChild in class ModelValueModelNode getChild(int index)
getChild in class ModelValueModelValue copy()
copy in class ModelValueModelValue resolve()
resolve in class ModelValuepublic boolean equals(java.lang.Object other)
equals in class ModelValuepublic boolean equals(PropertyModelValue other)
public 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.NoSuchElementExceptionvoid 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.