final class TypeModelValue extends ModelValue
| Modifier and Type | Field and Description |
|---|---|
private static TypeModelValue |
BIG_DECIMAL |
private static TypeModelValue |
BIG_INTEGER |
private static TypeModelValue |
BOOLEAN |
private static TypeModelValue |
BYTES |
private static TypeModelValue |
DOUBLE |
private static TypeModelValue |
EXPRESSION |
private static TypeModelValue |
INT |
private static TypeModelValue |
LIST |
private static TypeModelValue |
LONG |
private static TypeModelValue |
OBJECT |
private static TypeModelValue |
PROPERTY |
private static TypeModelValue |
STRING |
private static TypeModelValue |
TYPE |
static java.lang.String |
TYPE_KEY
JSON Key used to identify TypeModelValue.
|
private static TypeModelValue |
UNDEFINED |
private ModelType |
value |
| Modifier | Constructor and Description |
|---|---|
private |
TypeModelValue(ModelType value) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
asBoolean() |
(package private) boolean |
asBoolean(boolean defVal) |
(package private) ValueExpression |
asExpression() |
(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(TypeModelValue other)
Determine whether this object is equal to another.
|
(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) static TypeModelValue |
of(ModelType type) |
(package private) void |
writeExternal(java.io.DataOutput out) |
addChild, asBigDecimal, asBigInteger, asBytes, asDouble, asDouble, asInt, asInt, asList, asLong, asLong, asObject, asProperty, asPropertyList, clone, copy, format, getChild, getChild, getKeys, getType, has, has, indent, insertChild, jsonEscape, protect, quote, removeChild, removeChild, requireChild, requireChild, resolve, toJSONString, toString, writeJSONString, writeStringpublic static final java.lang.String TYPE_KEY
private final ModelType value
private static final TypeModelValue BIG_DECIMAL
private static final TypeModelValue BIG_INTEGER
private static final TypeModelValue BOOLEAN
private static final TypeModelValue BYTES
private static final TypeModelValue DOUBLE
private static final TypeModelValue EXPRESSION
private static final TypeModelValue INT
private static final TypeModelValue LONG
private static final TypeModelValue LIST
private static final TypeModelValue OBJECT
private static final TypeModelValue PROPERTY
private static final TypeModelValue STRING
private static final TypeModelValue TYPE
private static final TypeModelValue UNDEFINED
private TypeModelValue(ModelType value)
void writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in class ModelValuejava.io.IOExceptionstatic TypeModelValue of(ModelType type)
boolean asBoolean()
asBoolean in class ModelValueboolean asBoolean(boolean defVal)
asBoolean in class ModelValuejava.lang.String asString()
asString in class ModelValueValueExpression asExpression()
asExpression in class ModelValueModelType asType()
asType in class ModelValuevoid 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(TypeModelValue other)
other - the other objecttrue if they are equal, false otherwisepublic int hashCode()
hashCode in class ModelValue