org.jruby.yaml
Class JRubyRepresenter
java.lang.Object
org.jvyamlb.RepresenterImpl
org.jvyamlb.SafeRepresenterImpl
org.jruby.yaml.JRubyRepresenter
- All Implemented Interfaces:
- org.jvyamlb.Representer
public class JRubyRepresenter
- extends org.jvyamlb.SafeRepresenterImpl
- Author:
- Ola Bini
Nested classes/interfaces inherited from class org.jvyamlb.RepresenterImpl |
org.jvyamlb.RepresenterImpl.ArrayYAMLNodeCreator, org.jvyamlb.RepresenterImpl.ByteListYAMLNodeCreator, org.jvyamlb.RepresenterImpl.DateYAMLNodeCreator, org.jvyamlb.RepresenterImpl.JavaBeanYAMLNodeCreator, org.jvyamlb.RepresenterImpl.MappingYAMLNodeCreator, org.jvyamlb.RepresenterImpl.NumberYAMLNodeCreator, org.jvyamlb.RepresenterImpl.ScalarYAMLNodeCreator, org.jvyamlb.RepresenterImpl.SequenceYAMLNodeCreator, org.jvyamlb.RepresenterImpl.SetYAMLNodeCreator, org.jvyamlb.RepresenterImpl.StringYAMLNodeCreator |
Constructor Summary |
JRubyRepresenter(org.jvyamlb.Serializer serializer,
org.jvyamlb.YAMLConfig opts)
|
Method Summary |
protected org.jvyamlb.YAMLNodeCreator |
getNodeCreatorFor(java.lang.Object data)
|
protected boolean |
ignoreAliases(java.lang.Object data)
|
org.jvyamlb.nodes.Node |
map(java.lang.String tag,
java.util.Map mapping,
java.lang.Object flowStyle)
|
org.jvyamlb.nodes.Node |
representMapping(java.lang.String tag,
java.util.Map mapping,
boolean flowStyle)
|
org.jvyamlb.nodes.Node |
scalar(java.lang.String tag,
org.jruby.util.ByteList val,
java.lang.String style)
|
org.jvyamlb.nodes.Node |
scalar(java.lang.String tag,
java.lang.String val,
java.lang.String style)
|
org.jvyamlb.nodes.Node |
seq(java.lang.String tag,
java.util.List sequence,
java.lang.Object flowStyle)
|
Methods inherited from class org.jvyamlb.RepresenterImpl |
main, map, represent, representData, representScalar, representSequence, scalar, seq |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRubyRepresenter
public JRubyRepresenter(org.jvyamlb.Serializer serializer,
org.jvyamlb.YAMLConfig opts)
getNodeCreatorFor
protected org.jvyamlb.YAMLNodeCreator getNodeCreatorFor(java.lang.Object data)
- Overrides:
getNodeCreatorFor
in class org.jvyamlb.RepresenterImpl
map
public org.jvyamlb.nodes.Node map(java.lang.String tag,
java.util.Map mapping,
java.lang.Object flowStyle)
throws java.io.IOException
- Throws:
java.io.IOException
seq
public org.jvyamlb.nodes.Node seq(java.lang.String tag,
java.util.List sequence,
java.lang.Object flowStyle)
throws java.io.IOException
- Throws:
java.io.IOException
scalar
public org.jvyamlb.nodes.Node scalar(java.lang.String tag,
java.lang.String val,
java.lang.String style)
throws java.io.IOException
- Throws:
java.io.IOException
scalar
public org.jvyamlb.nodes.Node scalar(java.lang.String tag,
org.jruby.util.ByteList val,
java.lang.String style)
throws java.io.IOException
- Throws:
java.io.IOException
representMapping
public org.jvyamlb.nodes.Node representMapping(java.lang.String tag,
java.util.Map mapping,
boolean flowStyle)
throws java.io.IOException
- Overrides:
representMapping
in class org.jvyamlb.RepresenterImpl
- Throws:
java.io.IOException
ignoreAliases
protected boolean ignoreAliases(java.lang.Object data)
- Overrides:
ignoreAliases
in class org.jvyamlb.SafeRepresenterImpl
Copyright © 2002-2007 JRuby Team. All Rights Reserved.