| Modifier and Type | Method and Description |
|---|---|
Node |
RepresentToNode.representData(Object data)
Create a Node
|
| Modifier and Type | Method and Description |
|---|---|
Object |
ConstructNode.construct(Node node)
Construct a Java instance with all the properties injected when it is possible.
|
default void |
ConstructNode.constructRecursive(Node node,
Object object)
Apply the second step when constructing recursive structures.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<Node> |
Compose.composeAllFromInputStream(InputStream yaml)
Parse all YAML documents in a stream and produce corresponding representation trees.
|
Iterable<Node> |
Compose.composeAllFromReader(Reader yaml)
Parse all YAML documents in a stream and produce corresponding representation trees.
|
Iterable<Node> |
Compose.composeAllFromString(String yaml)
Parse all YAML documents in a stream and produce corresponding representation trees.
|
Optional<Node> |
Compose.composeInputStream(InputStream yaml)
Parse a YAML stream and produce
Node |
Optional<Node> |
Compose.composeReader(Reader yaml)
Parse a YAML stream and produce
Node |
Optional<Node> |
Compose.composeString(String yaml)
Parse a YAML stream and produce
Node |
| Modifier and Type | Method and Description |
|---|---|
List<Event> |
Serialize.serializeOne(Node node)
Serialize a
Node and produce events. |
| Modifier and Type | Method and Description |
|---|---|
List<Event> |
Serialize.serializeAll(List<Node> nodes)
Serialize
Nodes and produce events. |
| Modifier and Type | Method and Description |
|---|---|
protected Node |
Composer.composeKeyNode(MappingNode node) |
protected Node |
Composer.composeMappingNode(Optional<Anchor> anchor) |
protected Node |
Composer.composeScalarNode(Optional<Anchor> anchor) |
protected Node |
Composer.composeSequenceNode(Optional<Anchor> anchor) |
protected Node |
Composer.composeValueNode(MappingNode node) |
Node |
Composer.next()
Reads and composes the next document.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Node> |
Composer.getSingleNode()
Reads a document from a source that contains only one document.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
StandardConstructor.ConstructYamlNull.construct(Node node) |
Object |
StandardConstructor.ConstructYamlBool.construct(Node node) |
Object |
StandardConstructor.ConstructYamlInt.construct(Node node) |
Object |
StandardConstructor.ConstructYamlFloat.construct(Node node) |
Object |
StandardConstructor.ConstructYamlBinary.construct(Node node) |
Object |
StandardConstructor.ConstructUuidClass.construct(Node node) |
Object |
StandardConstructor.ConstructOptionalClass.construct(Node node) |
Object |
StandardConstructor.ConstructYamlOmap.construct(Node node) |
Object |
StandardConstructor.ConstructYamlSet.construct(Node node) |
Object |
StandardConstructor.ConstructYamlStr.construct(Node node) |
Object |
StandardConstructor.ConstructYamlSeq.construct(Node node) |
Object |
StandardConstructor.ConstructYamlMap.construct(Node node) |
protected Object |
BaseConstructor.construct(Node node)
Construct complete YAML document.
|
protected Object |
BaseConstructor.constructObject(Node node)
Construct object from the specified Node.
|
protected Object |
BaseConstructor.constructObjectNoCheck(Node node) |
void |
StandardConstructor.ConstructYamlSet.constructRecursive(Node node,
Object object) |
void |
StandardConstructor.ConstructYamlSeq.constructRecursive(Node node,
Object data) |
void |
StandardConstructor.ConstructYamlMap.constructRecursive(Node node,
Object object) |
protected Optional<ConstructNode> |
BaseConstructor.findConstructorFor(Node node)
|
| Modifier and Type | Method and Description |
|---|---|
Object |
BaseConstructor.constructSingleDocument(Optional<Node> optionalNode)
Ensure that the stream contains a single document and construct it
|
| Modifier and Type | Class and Description |
|---|---|
class |
AnchorNode |
class |
CollectionNode<T>
Base class for the two collection types
mapping and
collection. |
class |
MappingNode
Represents a map.
|
class |
ScalarNode
Represents a scalar node.
|
class |
SequenceNode
Represents a sequence.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
NodeTuple.getKeyNode()
Key node.
|
Node |
AnchorNode.getRealNode() |
Node |
NodeTuple.getValueNode()
Value node.
|
| Modifier and Type | Method and Description |
|---|---|
List<Node> |
SequenceNode.getSequence() |
List<Node> |
SequenceNode.getValue()
Returns the elements in this sequence.
|
| Constructor and Description |
|---|
AnchorNode(Node realNode) |
NodeTuple(Node keyNode,
Node valueNode) |
| Constructor and Description |
|---|
SequenceNode(Tag tag,
boolean resolved,
List<Node> value,
FlowStyle flowStyle,
Optional<Mark> startMark,
Optional<Mark> endMark) |
SequenceNode(Tag tag,
List<Node> value,
FlowStyle flowStyle) |
| Modifier and Type | Field and Description |
|---|---|
protected Map<Object,Node> |
BaseRepresenter.representedObjects |
| Modifier and Type | Method and Description |
|---|---|
Node |
BaseRepresenter.represent(Object data)
Represent the provided Java instance to a Node
|
Node |
StandardRepresenter.RepresentNull.representData(Object data) |
Node |
StandardRepresenter.RepresentString.representData(Object data) |
Node |
StandardRepresenter.RepresentBoolean.representData(Object data) |
Node |
StandardRepresenter.RepresentNumber.representData(Object data) |
Node |
StandardRepresenter.RepresentList.representData(Object data) |
Node |
StandardRepresenter.RepresentIterator.representData(Object data) |
Node |
StandardRepresenter.RepresentArray.representData(Object data) |
Node |
StandardRepresenter.RepresentPrimitiveArray.representData(Object data) |
Node |
StandardRepresenter.RepresentMap.representData(Object data) |
Node |
StandardRepresenter.RepresentSet.representData(Object data) |
Node |
StandardRepresenter.RepresentEnum.representData(Object data) |
Node |
StandardRepresenter.RepresentByteArray.representData(Object data) |
Node |
StandardRepresenter.RepresentUuid.representData(Object data) |
Node |
StandardRepresenter.RepresentOptional.representData(Object data) |
protected Node |
BaseRepresenter.representData(Object data) |
protected Node |
BaseRepresenter.representMapping(Tag tag,
Map<?,?> mapping,
FlowStyle flowStyle) |
protected Node |
BaseRepresenter.representScalar(Tag tag,
String value) |
protected Node |
BaseRepresenter.representScalar(Tag tag,
String value,
ScalarStyle style) |
protected Node |
BaseRepresenter.representSequence(Tag tag,
Iterable<?> sequence,
FlowStyle flowStyle) |
| Modifier and Type | Method and Description |
|---|---|
Anchor |
NumberAnchorGenerator.nextAnchor(Node node) |
Anchor |
AnchorGenerator.nextAnchor(Node node) |
void |
Serializer.serialize(Node node) |
Copyright © 2018–2019. All rights reserved.