public class Tree extends Bean
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
Tree() |
Tree(boolean optimizeTreeStructure) |
Modifier and Type | Method and Description |
---|---|
Tree |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
Tree |
fromXmlElement(Element element) |
List<TreeNode> |
getAllFields() |
List<TreeNode> |
getAllNodes() |
List<TreeNode> |
getAllRecordBreaks() |
TreeNode |
getRootNode() |
static Tree |
loadJson(File file) |
static Tree |
loadJson(File file,
boolean optimizeTreeStructure) |
static Tree |
loadJson(Reader reader) |
static Tree |
loadJson(Reader reader,
boolean optimizeTreeStructure) |
static Tree |
loadXml(File file) |
static Tree |
loadXml(File file,
boolean optimizeTreeStructure) |
static Tree |
loadXml(Reader reader) |
static Tree |
loadXml(Reader reader,
boolean optimizeTreeStructure) |
Record |
toRecord() |
Element |
toXmlElement(Document document) |
void |
visit(boolean headFirst,
Consumer<TreeNode> consumer) |
addExceptionProperties, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties, exception, exception, exception
public TreeNode getRootNode()
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public Tree fromRecord(Record source)
RecordSerializable
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord
in interface RecordSerializable
fromRecord
in class Bean
Copyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.