Package | Description |
---|---|
org.yaml.snakeyaml | |
org.yaml.snakeyaml.constructor | |
org.yaml.snakeyaml.nodes | |
org.yaml.snakeyaml.representer | |
org.yaml.snakeyaml.resolver | |
org.yaml.snakeyaml.serializer |
Modifier and Type | Method | Description |
---|---|---|
Tag |
TypeDescription.getTag() |
Get tag which shall be used to load or dump the type (class).
|
Modifier and Type | Method | Description |
---|---|---|
void |
Yaml.addImplicitResolver(Tag tag,
Pattern regexp,
String first) |
Add an implicit scalar detector.
|
String |
Yaml.dumpAs(Object data,
Tag rootTag,
DumperOptions.FlowStyle flowStyle) |
Serialize a Java object into a YAML string.
|
void |
TypeDescription.setTag(Tag tag) |
Set tag to be used to load or dump the type (class).
|
Constructor | Description |
---|---|
TypeDescription(Class<? extends Object> clazz,
Tag tag) |
|
TypeDescription(Class<? extends Object> clazz,
Tag tag,
Class<?> impl) |
Modifier and Type | Field | Description |
---|---|---|
protected Tag |
BaseConstructor.rootTag |
Modifier and Type | Field | Description |
---|---|---|
protected Map<Tag,Class<? extends Object>> |
BaseConstructor.typeTags |
|
protected Map<Tag,Construct> |
BaseConstructor.yamlConstructors |
It maps the (explicit or implicit) tag to the Construct implementation.
|
Modifier and Type | Field | Description |
---|---|---|
static Tag |
Tag.BINARY |
|
static Tag |
Tag.BOOL |
|
static Tag |
Tag.FLOAT |
|
static Tag |
Tag.INT |
|
static Tag |
Tag.MAP |
|
static Tag |
Tag.MERGE |
|
static Tag |
Tag.NULL |
|
static Tag |
Tag.OMAP |
|
static Tag |
Tag.PAIRS |
|
static Tag |
Tag.SEQ |
|
static Tag |
Tag.SET |
|
static Tag |
Tag.STR |
|
static Tag |
Tag.TIMESTAMP |
|
static Tag |
Tag.YAML |
Modifier and Type | Field | Description |
---|---|---|
static Map<Tag,Set<Class<?>>> |
Tag.COMPATIBILITY_MAP |
Modifier and Type | Method | Description |
---|---|---|
Tag |
Node.getTag() |
Tag of this node.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Node.setTag(Tag tag) |
Constructor | Description |
---|---|
CollectionNode(Tag tag,
Mark startMark,
Mark endMark,
DumperOptions.FlowStyle flowStyle) |
|
MappingNode(Tag tag,
boolean resolved,
List<NodeTuple> value,
Mark startMark,
Mark endMark,
DumperOptions.FlowStyle flowStyle) |
|
MappingNode(Tag tag,
List<NodeTuple> value,
DumperOptions.FlowStyle flowStyle) |
|
Node(Tag tag,
Mark startMark,
Mark endMark) |
|
ScalarNode(Tag tag,
boolean resolved,
String value,
Mark startMark,
Mark endMark,
DumperOptions.ScalarStyle style) |
|
ScalarNode(Tag tag,
String value,
Mark startMark,
Mark endMark,
DumperOptions.ScalarStyle style) |
|
SequenceNode(Tag tag,
boolean resolved,
List<Node> value,
Mark startMark,
Mark endMark,
DumperOptions.FlowStyle flowStyle) |
|
SequenceNode(Tag tag,
List<Node> value,
DumperOptions.FlowStyle flowStyle) |
Modifier and Type | Method | Description |
---|---|---|
protected NodeTuple |
Representer.representJavaBeanProperty(Object javaBean,
Property property,
Object propertyValue,
Tag customTag) |
Represent one JavaBean property.
|
protected Node |
BaseRepresenter.representMapping(Tag tag,
Map<?,?> mapping,
DumperOptions.FlowStyle flowStyle) |
|
protected Node |
BaseRepresenter.representScalar(Tag tag,
String value) |
|
protected Node |
BaseRepresenter.representScalar(Tag tag,
String value,
DumperOptions.ScalarStyle style) |
|
protected Node |
BaseRepresenter.representSequence(Tag tag,
Iterable<?> sequence,
DumperOptions.FlowStyle flowStyle) |
Modifier and Type | Method | Description |
---|---|---|
Tag |
Resolver.resolve(NodeId kind,
String value,
boolean implicit) |
Modifier and Type | Method | Description |
---|---|---|
void |
Resolver.addImplicitResolver(Tag tag,
Pattern regexp,
String first) |
Constructor | Description |
---|---|
Serializer(Emitable emitter,
Resolver resolver,
DumperOptions opts,
Tag rootTag) |
Copyright © 2008–2018. All rights reserved.