public class JSONCoercibleType extends java.lang.Object implements NestedCoercibleType<JsonNode,ArrayNode>, SerializableType
NestedCoercibleType
that provides support
for JSON object types.
Supported values will be maintained as a JsonNode
canonical type within the Tuple
.
Note that canonical(Object)
will always attempt to parse a String value to a new JsonNode.
If the parse fails, it will return a TextNode
instance wrapping the
String value.
See the NestedCoercibleType.node(Object)
.
Modifier and Type | Field and Description |
---|---|
static JSONCoercibleType |
TYPE |
Modifier and Type | Method and Description |
---|---|
JsonNode |
canonical(java.lang.Object value) |
<Coerce> Coerce |
coerce(java.lang.Object value,
java.lang.reflect.Type to) |
JsonNode |
deepCopy(JsonNode jsonNode) |
boolean |
equals(java.lang.Object object) |
java.lang.Class<JsonNode> |
getCanonicalType() |
heretical.pointer.path.NestedPointerCompiler<JsonNode,ArrayNode> |
getNestedPointerCompiler() |
java.lang.Class |
getSerializer(java.lang.Class base) |
int |
hashCode() |
JsonNode |
newRoot() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
node
public static final JSONCoercibleType TYPE
public java.lang.Class<JsonNode> getCanonicalType()
getCanonicalType
in interface CoercibleType<JsonNode>
public JsonNode canonical(java.lang.Object value)
canonical
in interface CoercibleType<JsonNode>
public <Coerce> Coerce coerce(java.lang.Object value, java.lang.reflect.Type to)
coerce
in interface CoercibleType<JsonNode>
public heretical.pointer.path.NestedPointerCompiler<JsonNode,ArrayNode> getNestedPointerCompiler()
getNestedPointerCompiler
in interface NestedCoercibleType<JsonNode,ArrayNode>
public JsonNode deepCopy(JsonNode jsonNode)
deepCopy
in interface NestedCoercibleType<JsonNode,ArrayNode>
public JsonNode newRoot()
newRoot
in interface NestedCoercibleType<JsonNode,ArrayNode>
public java.lang.Class getSerializer(java.lang.Class base)
getSerializer
in interface SerializableType
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.