org.jvyamlb
Class RepresenterImpl
java.lang.Object
org.jvyamlb.RepresenterImpl
- All Implemented Interfaces:
- Representer
- Direct Known Subclasses:
- SafeRepresenterImpl
public class RepresenterImpl
- extends java.lang.Object
- implements Representer
- Author:
- Ola Bini
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)
|
protected Node |
representData(java.lang.Object data)
|
Node |
representMapping(java.lang.String tag,
java.util.Map mapping,
boolean flowStyle)
|
Node |
representScalar(java.lang.String tag,
org.jruby.util.ByteList value,
char style)
|
Node |
representSequence(java.lang.String tag,
java.util.List sequence,
boolean flowStyle)
|
Node |
scalar(java.lang.String tag,
org.jruby.util.ByteList 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 |
serializer
private final Serializer serializer
defaultStyle
private final char defaultStyle
representedObjects
private final java.util.Map representedObjects
links
private final java.util.Map links
RepresenterImpl
public RepresenterImpl(Serializer serializer,
YAMLConfig opts)
representData
protected Node representData(java.lang.Object data)
throws java.io.IOException
- Throws:
java.io.IOException
scalar
public Node scalar(java.lang.String tag,
org.jruby.util.ByteList 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,
org.jruby.util.ByteList 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