Package org.freezedry.persistence.keyvalue.renderers

Examples of org.freezedry.persistence.keyvalue.renderers.CollectionRenderer


   * @see AbstractKeyValueBuilder#getRenderer(Class)
   */
  public AbstractKeyValueBuilder( final String separator )
  {
    renderers = createDefaultRenderers();
    arrayRenderer = new CollectionRenderer( this );
    this.separator = separator;
  }
View Full Code Here


   * @see AbstractKeyValueBuilder#getRenderer(Class)
   */
  public AbstractKeyValueBuilder()
  {
    renderers = createDefaultRenderers();
    arrayRenderer = new CollectionRenderer( this );
    separator = KEY_ELEMENT_SEPARATOR;
  }
View Full Code Here

   * @return The mapping between class and their associated renderer
   */
  private Map< Class< ? >, PersistenceRenderer > createDefaultRenderers()
  {
    final Map< Class< ? >, PersistenceRenderer > renderers = new HashMap<>();
    renderers.put( Collection.class, new CollectionRenderer( this ) );
    renderers.put( Map.class, new MapRenderer( this ) );

    renderers.put( String.class, new LeafNodeRenderer( this ) );
   
    renderers.put( Integer.class, new LeafNodeRenderer( this ) );
View Full Code Here

   * @see AbstractKeyValueBuilder#getRenderer(Class)
   */
  public AbstractKeyValueBuilder( final String separator )
  {
    renderers = createDefaultRenderers();
    arrayRenderer = new CollectionRenderer( this );
    this.separator = separator;
  }
View Full Code Here

   * @see AbstractKeyValueBuilder#getRenderer(Class)
   */
  public AbstractKeyValueBuilder()
  {
    renderers = createDefaultRenderers();
    arrayRenderer = new CollectionRenderer( this );
    separator = KEY_ELEMENT_SEPARATOR;
  }
View Full Code Here

   * @return The mapping between class and their associated renderer
   */
  private Map< Class< ? >, PersistenceRenderer > createDefaultRenderers()
  {
    final Map< Class< ? >, PersistenceRenderer > renderers = new HashMap<>();
    renderers.put( Collection.class, new CollectionRenderer( this ) );
//    renderers.put( Collection.class, new FlatteningCollectionRenderer( this ) );
    renderers.put( Map.class, new MapRenderer( this ) );

    renderers.put( String.class, new LeafNodeRenderer( this ) );
   
View Full Code Here

   * @see AbstractKeyValueBuilder#getRenderer(Class)
   */
  public AbstractKeyValueBuilder( final String separator )
  {
    renderers = createDefaultRenderers();
    arrayRenderer = new CollectionRenderer( this );
    this.separator = separator;
  }
View Full Code Here

   * @see AbstractKeyValueBuilder#getRenderer(Class)
   */
  public AbstractKeyValueBuilder()
  {
    renderers = createDefaultRenderers();
    arrayRenderer = new CollectionRenderer( this );
    separator = KEY_ELEMENT_SEPARATOR;
  }
View Full Code Here

   * @return The mapping between class and their associated renderer
   */
  private Map< Class< ? >, PersistenceRenderer > createDefaultRenderers()
  {
    final Map< Class< ? >, PersistenceRenderer > renderers = new HashMap<>();
    renderers.put( Collection.class, new CollectionRenderer( this ) );
//    renderers.put( Collection.class, new FlatteningCollectionRenderer( this ) );
    renderers.put( Map.class, new MapRenderer( this ) );

    renderers.put( String.class, new LeafNodeRenderer( this ) );
   
View Full Code Here

   * @see AbstractKeyValueBuilder#getRenderer(Class)
   */
  public AbstractKeyValueBuilder( final String separator )
  {
    renderers = createDefaultRenderers();
    arrayRenderer = new CollectionRenderer( this );
    this.separator = separator;
  }
View Full Code Here

TOP

Related Classes of org.freezedry.persistence.keyvalue.renderers.CollectionRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.