Modifier and Type | Field and Description |
---|---|
private Tag |
TypeDescription.tag |
Modifier and Type | Method and Description |
---|---|
Tag |
TypeDescription.getTag()
Get tag which shall be used to load or dump the type (class).
|
Modifier and Type | Method and Description |
---|---|
void |
Yaml.addImplicitResolver(Tag tag,
java.util.regex.Pattern regexp,
java.lang.String first)
Add an implicit scalar detector.
|
void |
Yaml.addImplicitResolver(Tag tag,
java.util.regex.Pattern regexp,
java.lang.String first,
int limit)
Add an implicit scalar detector.
|
private void |
Yaml.dumpAll(java.util.Iterator<? extends java.lang.Object> data,
java.io.Writer output,
Tag rootTag) |
java.lang.String |
Yaml.dumpAs(java.lang.Object data,
Tag rootTag,
DumperOptions.FlowStyle flowStyle)
Serialize a Java object into a YAML string.
|
void |
TypeDescription.setTag(Tag tag)
Deprecated.
it will be removed because it is not used
|
Constructor and Description |
---|
TypeDescription(java.lang.Class<? extends java.lang.Object> clazz,
Tag tag) |
TypeDescription(java.lang.Class<? extends java.lang.Object> clazz,
Tag tag,
java.lang.Class<?> impl) |
Modifier and Type | Field and Description |
---|---|
protected Tag |
BaseConstructor.rootTag |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Tag,java.lang.Class<? extends java.lang.Object>> |
BaseConstructor.typeTags |
protected java.util.Map<Tag,Construct> |
BaseConstructor.yamlConstructors
It maps the (explicit or implicit) tag to the Construct implementation.
|
Modifier and Type | Field and Description |
---|---|
static Tag |
EnvScalarConstructor.ENV_TAG |
Modifier and Type | Field and Description |
---|---|
static Tag |
Tag.BINARY |
static Tag |
Tag.BOOL |
static Tag |
Tag.COMMENT |
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 |
private Tag |
Node.tag |
static Tag |
Tag.TIMESTAMP |
static Tag |
Tag.YAML |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<Tag,java.util.Set<java.lang.Class<?>>> |
Tag.COMPATIBILITY_MAP |
Modifier and Type | Method and Description |
---|---|
Tag |
Node.getTag()
Tag of this node.
|
Modifier and Type | Method and Description |
---|---|
void |
Node.setTag(Tag tag) |
Constructor and Description |
---|
CollectionNode(Tag tag,
Mark startMark,
Mark endMark,
java.lang.Boolean flowStyle)
Deprecated.
|
CollectionNode(Tag tag,
Mark startMark,
Mark endMark,
DumperOptions.FlowStyle flowStyle) |
MappingNode(Tag tag,
boolean resolved,
java.util.List<NodeTuple> value,
Mark startMark,
Mark endMark,
java.lang.Boolean flowStyle)
Deprecated.
|
MappingNode(Tag tag,
boolean resolved,
java.util.List<NodeTuple> value,
Mark startMark,
Mark endMark,
DumperOptions.FlowStyle flowStyle) |
MappingNode(Tag tag,
java.util.List<NodeTuple> value,
java.lang.Boolean flowStyle)
Deprecated.
|
MappingNode(Tag tag,
java.util.List<NodeTuple> value,
DumperOptions.FlowStyle flowStyle) |
Node(Tag tag,
Mark startMark,
Mark endMark) |
ScalarNode(Tag tag,
boolean resolved,
java.lang.String value,
Mark startMark,
Mark endMark,
java.lang.Character style)
Deprecated.
|
ScalarNode(Tag tag,
boolean resolved,
java.lang.String value,
Mark startMark,
Mark endMark,
DumperOptions.ScalarStyle style) |
ScalarNode(Tag tag,
java.lang.String value,
Mark startMark,
Mark endMark,
java.lang.Character style)
Deprecated.
|
ScalarNode(Tag tag,
java.lang.String value,
Mark startMark,
Mark endMark,
DumperOptions.ScalarStyle style) |
SequenceNode(Tag tag,
boolean resolved,
java.util.List<Node> value,
Mark startMark,
Mark endMark,
java.lang.Boolean style)
Deprecated.
|
SequenceNode(Tag tag,
boolean resolved,
java.util.List<Node> value,
Mark startMark,
Mark endMark,
DumperOptions.FlowStyle flowStyle) |
SequenceNode(Tag tag,
java.util.List<Node> value,
java.lang.Boolean style)
Deprecated.
|
SequenceNode(Tag tag,
java.util.List<Node> value,
DumperOptions.FlowStyle flowStyle) |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Class<? extends java.lang.Object>,Tag> |
SafeRepresenter.classTags |
Modifier and Type | Method and Description |
---|---|
Tag |
SafeRepresenter.addClassTag(java.lang.Class<? extends java.lang.Object> clazz,
Tag tag)
Define a tag for the
Class to serialize. |
protected Tag |
SafeRepresenter.getTag(java.lang.Class<?> clazz,
Tag defaultTag) |
Modifier and Type | Method and Description |
---|---|
Tag |
SafeRepresenter.addClassTag(java.lang.Class<? extends java.lang.Object> clazz,
Tag tag)
Define a tag for the
Class to serialize. |
protected Tag |
SafeRepresenter.getTag(java.lang.Class<?> clazz,
Tag defaultTag) |
protected NodeTuple |
Representer.representJavaBeanProperty(java.lang.Object javaBean,
Property property,
java.lang.Object propertyValue,
Tag customTag)
Represent one JavaBean property.
|
protected Node |
BaseRepresenter.representMapping(Tag tag,
java.util.Map<?,?> mapping,
DumperOptions.FlowStyle flowStyle) |
protected Node |
BaseRepresenter.representScalar(Tag tag,
java.lang.String value) |
protected Node |
BaseRepresenter.representScalar(Tag tag,
java.lang.String value,
DumperOptions.ScalarStyle style) |
protected Node |
BaseRepresenter.representSequence(Tag tag,
java.lang.Iterable<?> sequence,
DumperOptions.FlowStyle flowStyle) |
Modifier and Type | Field and Description |
---|---|
private Tag |
ResolverTuple.tag |
Modifier and Type | Method and Description |
---|---|
Tag |
ResolverTuple.getTag() |
Tag |
Resolver.resolve(NodeId kind,
java.lang.String value,
boolean implicit) |
Modifier and Type | Method and Description |
---|---|
void |
Resolver.addImplicitResolver(Tag tag,
java.util.regex.Pattern regexp,
java.lang.String first) |
void |
Resolver.addImplicitResolver(Tag tag,
java.util.regex.Pattern regexp,
java.lang.String first,
int limit) |
Constructor and Description |
---|
ResolverTuple(Tag tag,
java.util.regex.Pattern regexp,
int limit) |
Modifier and Type | Field and Description |
---|---|
private Tag |
Serializer.explicitRoot |
Constructor and Description |
---|
Serializer(Emitable emitter,
Resolver resolver,
DumperOptions opts,
Tag rootTag) |