org.jvyamlb
Class RepresenterImpl

java.lang.Object
  extended by org.jvyamlb.RepresenterImpl
All Implemented Interfaces:
Representer
Direct Known Subclasses:
SafeRepresenterImpl

public class RepresenterImpl
extends java.lang.Object
implements Representer

Author:
Ola Bini

Nested Class Summary
static class RepresenterImpl.ArrayYAMLNodeCreator
           
static class RepresenterImpl.ByteListYAMLNodeCreator
           
static class RepresenterImpl.DateYAMLNodeCreator
           
static class RepresenterImpl.JavaBeanYAMLNodeCreator
           
static class RepresenterImpl.MappingYAMLNodeCreator
           
static class RepresenterImpl.NumberYAMLNodeCreator
           
static class RepresenterImpl.ScalarYAMLNodeCreator
           
static class RepresenterImpl.SequenceYAMLNodeCreator
           
static class RepresenterImpl.SetYAMLNodeCreator
           
static class RepresenterImpl.StringYAMLNodeCreator
           
 
Constructor Summary
RepresenterImpl(Serializer serializer, YAMLConfig opts)
           
 
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, ByteList value, char style)
           
 Node representSequence(java.lang.String tag, java.util.List sequence, boolean flowStyle)
           
 Node scalar(java.lang.String tag, 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
 

Constructor Detail

RepresenterImpl

public RepresenterImpl(Serializer serializer,
                       YAMLConfig opts)
Method Detail

scalar

public Node scalar(java.lang.String tag,
                   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,
                            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


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