org.jruby.yaml
Class JRubyRepresenter

java.lang.Object
  extended byorg.jvyamlb.RepresenterImpl
      extended byorg.jvyamlb.SafeRepresenterImpl
          extended byorg.jruby.yaml.JRubyRepresenter
All Implemented Interfaces:
Representer

public class JRubyRepresenter
extends SafeRepresenterImpl

Author:
Ola Bini

Nested Class Summary
static class JRubyRepresenter.IRubyObjectYAMLNodeCreator
           
 
Nested classes inherited from class org.jvyamlb.RepresenterImpl
RepresenterImpl.ArrayYAMLNodeCreator, RepresenterImpl.ByteListYAMLNodeCreator, RepresenterImpl.DateYAMLNodeCreator, RepresenterImpl.JavaBeanYAMLNodeCreator, RepresenterImpl.MappingYAMLNodeCreator, RepresenterImpl.NumberYAMLNodeCreator, RepresenterImpl.ScalarYAMLNodeCreator, RepresenterImpl.SequenceYAMLNodeCreator, RepresenterImpl.SetYAMLNodeCreator, RepresenterImpl.StringYAMLNodeCreator
 
Constructor Summary
JRubyRepresenter(Serializer serializer, YAMLConfig opts)
           
 
Method Summary
protected  YAMLNodeCreator getNodeCreatorFor(java.lang.Object data)
           
protected  boolean ignoreAliases(java.lang.Object data)
           
 Node map(java.lang.String tag, java.util.Map mapping, java.lang.Object flowStyle)
           
 Node scalar(java.lang.String tag, ByteList val, java.lang.String style)
           
 Node scalar(java.lang.String tag, java.lang.String val, java.lang.String style)
           
 Node seq(java.lang.String tag, java.util.List sequence, java.lang.Object flowStyle)
           
 
Methods inherited from class org.jvyamlb.RepresenterImpl
main, map, represent, representMapping, representScalar, representSequence, scalar, seq
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRubyRepresenter

public JRubyRepresenter(Serializer serializer,
                        YAMLConfig opts)
Method Detail

getNodeCreatorFor

protected YAMLNodeCreator getNodeCreatorFor(java.lang.Object data)
Overrides:
getNodeCreatorFor in class RepresenterImpl

map

public Node map(java.lang.String tag,
                java.util.Map mapping,
                java.lang.Object flowStyle)
         throws java.io.IOException
Throws:
java.io.IOException

seq

public Node seq(java.lang.String tag,
                java.util.List sequence,
                java.lang.Object flowStyle)
         throws java.io.IOException
Throws:
java.io.IOException

scalar

public Node scalar(java.lang.String tag,
                   java.lang.String val,
                   java.lang.String style)
            throws java.io.IOException
Throws:
java.io.IOException

scalar

public Node scalar(java.lang.String tag,
                   ByteList val,
                   java.lang.String style)
            throws java.io.IOException
Throws:
java.io.IOException

ignoreAliases

protected boolean ignoreAliases(java.lang.Object data)
Overrides:
ignoreAliases in class SafeRepresenterImpl


Copyright © 2002-2007 JRuby Team. All Rights Reserved.