org.jvyaml
Class RepresenterImpl
java.lang.Object
org.jvyaml.RepresenterImpl
- All Implemented Interfaces:
- Representer
- Direct Known Subclasses:
- SafeRepresenterImpl
public class RepresenterImpl
- extends java.lang.Object
- implements Representer
Method Summary |
protected YAMLNodeCreator |
getNodeCreatorFor(java.lang.Object data)
|
protected boolean |
ignoreAliases(java.lang.Object data)
|
static void |
main(java.lang.String[] args)
|
Node |
map(java.lang.String tag,
java.util.Map mapping,
boolean flowStyle)
|
void |
represent(java.lang.Object data)
|
Node |
representMapping(java.lang.String tag,
java.util.Map mapping,
boolean flowStyle)
|
Node |
representScalar(java.lang.String tag,
java.lang.String value,
char style)
|
Node |
representSequence(java.lang.String tag,
java.util.List sequence,
boolean flowStyle)
|
Node |
scalar(java.lang.String tag,
java.lang.String value,
char style)
|
Node |
seq(java.lang.String tag,
java.util.List sequence,
boolean flowStyle)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepresenterImpl
public RepresenterImpl(Serializer serializer,
YAMLConfig opts)
scalar
public Node scalar(java.lang.String tag,
java.lang.String value,
char style)
throws java.io.IOException
- Specified by:
scalar
in interface Representer
- Throws:
java.io.IOException
representScalar
public Node representScalar(java.lang.String tag,
java.lang.String value,
char style)
throws java.io.IOException
- Throws:
java.io.IOException
seq
public Node seq(java.lang.String tag,
java.util.List sequence,
boolean flowStyle)
throws java.io.IOException
- Specified by:
seq
in interface Representer
- Throws:
java.io.IOException
representSequence
public Node representSequence(java.lang.String tag,
java.util.List sequence,
boolean flowStyle)
throws java.io.IOException
- Throws:
java.io.IOException
map
public Node map(java.lang.String tag,
java.util.Map mapping,
boolean flowStyle)
throws java.io.IOException
- Specified by:
map
in interface Representer
- Throws:
java.io.IOException
representMapping
public Node representMapping(java.lang.String tag,
java.util.Map mapping,
boolean flowStyle)
throws java.io.IOException
- Throws:
java.io.IOException
represent
public void represent(java.lang.Object data)
throws java.io.IOException
- Specified by:
represent
in interface Representer
- Throws:
java.io.IOException
ignoreAliases
protected boolean ignoreAliases(java.lang.Object data)
getNodeCreatorFor
protected YAMLNodeCreator getNodeCreatorFor(java.lang.Object data)
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException