org.jruby.yaml
Class JRubyRepresenter

java.lang.Object
  extended by SafeRepresenterImpl
      extended by org.jruby.yaml.JRubyRepresenter

public class JRubyRepresenter
extends SafeRepresenterImpl

Author:
Ola Bini

Nested Class Summary
static class JRubyRepresenter.IRubyObjectYAMLNodeCreator
           
 
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 representMapping(java.lang.String tag, java.util.Map mapping, boolean 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 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)

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

representMapping

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

ignoreAliases

protected boolean ignoreAliases(java.lang.Object data)


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