final class StringModelValue extends ModelValue
| Modifier and Type | Field and Description |
|---|---|
private static int |
THRESHOLD |
private java.lang.String |
value |
UNDEFINED| Constructor and Description |
|---|
StringModelValue(char typeChar,
java.io.DataInput in) |
StringModelValue(java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.math.BigDecimal |
asBigDecimal() |
(package private) java.math.BigInteger |
asBigInteger() |
(package private) boolean |
asBoolean() |
(package private) boolean |
asBoolean(boolean defVal) |
(package private) byte[] |
asBytes() |
(package private) double |
asDouble() |
(package private) double |
asDouble(double defVal) |
(package private) ValueExpression |
asExpression() |
(package private) int |
asInt() |
(package private) int |
asInt(int defVal) |
(package private) long |
asLong() |
(package private) long |
asLong(long defVal) |
(package private) java.lang.String |
asString() |
(package private) ModelType |
asType() |
boolean |
equals(java.lang.Object other)
Determine whether this object is equal to another.
|
boolean |
equals(StringModelValue other)
Determine whether this object is equal to another.
|
(package private) void |
format(java.io.PrintWriter writer,
int indent,
boolean multiLine)
Formats the current value object as part of a DMR string.
|
(package private) void |
formatAsJSON(java.io.PrintWriter writer,
int indent,
boolean multiLine)
Formats the current value object as part of a JSON string.
|
int |
hashCode() |
(package private) void |
writeExternal(java.io.DataOutput out) |
addChild, asList, asObject, asProperty, asPropertyList, clone, copy, getChild, getChild, getKeys, getType, has, has, indent, insertChild, jsonEscape, protect, quote, removeChild, removeChild, requireChild, requireChild, resolve, toJSONString, toString, writeJSONString, writeStringprivate static final int THRESHOLD
private final java.lang.String value
StringModelValue(java.lang.String value)
StringModelValue(char typeChar,
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.IOExceptionlong 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 ModelValuedouble asDouble()
asDouble in class ModelValuedouble asDouble(double defVal)
asDouble in class ModelValuebyte[] asBytes()
asBytes in class ModelValuejava.math.BigDecimal asBigDecimal()
asBigDecimal in class ModelValuejava.math.BigInteger asBigInteger()
asBigInteger in class ModelValuejava.lang.String asString()
asString in class ModelValueValueExpression asExpression()
asExpression in class ModelValueModelType asType()
asType in class ModelValuevoid format(java.io.PrintWriter writer,
int indent,
boolean multiLine)
ModelValueformat in class ModelValuewriter - A PrintWriter instance containing the generated DMR string representation.indent - The number of tabs to indent the current generated string.multiLine - Flag indicating whether or not the string should begin on a new line.void formatAsJSON(java.io.PrintWriter writer,
int indent,
boolean multiLine)
ModelValueformatAsJSON in class ModelValuewriter - A PrintWriter instance containing the JSON string.indent - The number of tabs to indent the current generated string.multiLine - 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(StringModelValue other)
other - the other objecttrue if they are equal, false otherwisepublic int hashCode()
hashCode in class ModelValue