public abstract class ValueNode<T> extends Node implements Comparable<ValueNode<T>>, Cloneable
FieldType)SingleValue,
Record,
ArrayValue,
Node,
Field,
FieldType,
Serialized FormNode.DuplicateNodeAction, Node.NodeTypeSession.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() |
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. |
boolean |
isRecord() |
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, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareTopublic abstract FieldType getType()
public Node getParentNode()
getParentNode in class Nodepublic boolean isValueNode()
Nodetrue if this node is a ValueNode (Record, ArrayValue, or SingleValue).isValueNode in class Nodepublic boolean isArray()
public boolean isNotArray()
public boolean isRecord()
public boolean isNotRecord()
public boolean isSingleValue()
public boolean isNotSingleValue()
public abstract T getValue()
public abstract String getValueAsString()
public boolean isNull()
Nodetrue 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()
Nodetrue 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-2025 North Concepts Inc. All Rights Reserved.