org.yaml.snakeyaml.representer
Class Representer

java.lang.Object
  extended by org.yaml.snakeyaml.representer.BaseRepresenter
      extended by org.yaml.snakeyaml.representer.Representer

public class Representer
extends BaseRepresenter

Represent JavaBeans


Field Summary
static Pattern BINARY_PATTERN
           
 
Fields inherited from class org.yaml.snakeyaml.representer.BaseRepresenter
defaultFlowStyle, multiRepresenters, nullRepresenter, objectToRepresent, representedObjects, representers
 
Constructor Summary
Representer()
           
 
Method Summary
 String addClassTag(Class<? extends Object> clazz, String tag)
          Define a tag for the Class to serialize
protected  boolean ignoreAliases(Object data)
           
 
Methods inherited from class org.yaml.snakeyaml.representer.BaseRepresenter
represent, representData, representMapping, representScalar, representScalar, representSequence, setDefaultFlowStyle, setDefaultScalarStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BINARY_PATTERN

public static Pattern BINARY_PATTERN
Constructor Detail

Representer

public Representer()
Method Detail

addClassTag

public String addClassTag(Class<? extends Object> clazz,
                          String tag)
Define a tag for the Class to serialize

Parameters:
clazz - Class which tag is changed
tag - new tag to be used for every instance of the specified Class
Returns:
the previous tag associated with the Class

ignoreAliases

protected boolean ignoreAliases(Object data)
Specified by:
ignoreAliases in class BaseRepresenter


Copyright © 2008-2009. All Rights Reserved.