public abstract class ValueNode<T> extends Node implements Comparable<ValueNode<T>>, Cloneable
FieldType
)SingleValue
,
Record
,
ArrayValue
,
Node
,
Field
,
FieldType
,
Serialized FormNode.DuplicateNodeAction, Node.NodeType
Session.SessionImpl
Modifier | Constructor and Description |
---|---|
protected |
ValueNode() |
Modifier and Type | Method and Description |
---|---|
static ArrayValue |
asArray(FieldType type,
Object value) |
abstract ValueNode<T> |
clone() |
static ValueNode<?> |
from(FieldType type,
Object value) |
Node |
getParentNode() |
abstract long |
getSizeInBytes() |
abstract FieldType |
getType() |
abstract T |
getValue() |
abstract String |
getValueAsString() |
abstract boolean |
isArray() |
boolean |
isNotArray() |
boolean |
isNotNull()
Returns
true if this node does not contain a null value. |
boolean |
isNotRecord() |
boolean |
isNotSingleValue() |
boolean |
isNull()
Returns
true if this node contains a null value. |
abstract boolean |
isRecord() |
abstract boolean |
isSingleValue() |
boolean |
isValueNode()
Returns
true if this node is a ValueNode (Record, ArrayValue, or SingleValue). |
static SingleValue |
nullValue() |
static SingleValue |
nullValue(FieldType type) |
protected Node |
setParentNode(Node parentNode) |
assertNotAncestorOf, containsSessionProperty, containsSessionProperty, containsSessionProperty, copySessionPropertiesFrom, getNodeDepth, getNodeType, getParentField, getParentRecord, getSessionProperty, getSessionProperty, getSessionProperty, hasChildNodes, hasChildRecords, isAncestorOf, isChildNode, keySet, removeChildNode, setSessionProperty, setSessionProperty, setSessionProperty, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
public abstract FieldType getType()
public Node getParentNode()
getParentNode
in class Node
public boolean isValueNode()
Node
true
if this node is a ValueNode (Record, ArrayValue, or SingleValue).isValueNode
in class Node
public abstract boolean isArray()
public boolean isNotArray()
public abstract boolean isRecord()
public boolean isNotRecord()
public abstract boolean isSingleValue()
public boolean isNotSingleValue()
public abstract T getValue()
public abstract String getValueAsString()
public boolean isNull()
Node
true
if this node contains a null value. In concrete terms, only Field
and SingleValue
can contain nulls while not
being null themselves. Both Record
and ArrayValue
will return false
even if they have no values or null only values.public boolean isNotNull()
Node
true
if this node does not contain a null value. In concrete terms, only Field
and SingleValue
can contain nulls
while not being null themselves. Both Record
and ArrayValue
will return true
even if they have no values or null only
values.public abstract long getSizeInBytes()
public static SingleValue nullValue()
public static SingleValue nullValue(FieldType type)
public static ArrayValue asArray(FieldType type, Object value)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.