Examples of StringDecorator


Examples of org.freezedry.persistence.keyvalue.renderers.decorators.StringDecorator

  {
    super( builder );
   
    this.openIndex = openIndex;
    this.closeIndex = closeIndex;
    this.indexDecorator = new StringDecorator( openIndex, closeIndex );
   
    // create the regular expression that determines if a string is renderered by this class
    // people[0] is a collection, but people{"test"}[0] is a map< string, list< integer > >
    // so we want to check that only word characters precede the "["
    final String open = Pattern.quote( openIndex );
View Full Code Here

Examples of org.freezedry.persistence.keyvalue.renderers.decorators.StringDecorator

   * @return creates and returns the default mapping between classes and their decorators
   */
  private static Map< Class< ? >, Decorator > createDefaultDecorators()
  {
    final Map< Class< ? >, Decorator > decorators = new HashMap<>();
    decorators.put( String.class, new StringDecorator() );

    decorators.put( Integer.class, new IntegerDecorator() );
    decorators.put( Long.class, new IntegerDecorator() );
    decorators.put( Short.class, new IntegerDecorator() );
    decorators.put( Double.class, new DoubleDecorator() );
    decorators.put( Boolean.class, new BooleanDecorator() );

    decorators.put( Integer.TYPE, new IntegerDecorator() );
    decorators.put( Long.TYPE, new IntegerDecorator() );
    decorators.put( Short.TYPE, new IntegerDecorator() );
    decorators.put( Double.TYPE, new DoubleDecorator() );
    decorators.put( Boolean.TYPE, new BooleanDecorator() );

    decorators.put( String.class, new StringDecorator() );
   
    return decorators;
  }
View Full Code Here

Examples of org.freezedry.persistence.keyvalue.renderers.decorators.StringDecorator

  public MapRenderer( final KeyValueBuilder builder, final String openKey, final String closeKey )
  {
    super( builder );
   
    // create the decorator for the key
    keyDecorator = new StringDecorator( openKey, closeKey );
   
    // create the regular expression that determines if a string is renderered by this class
    // people[0] is a collection, but people{"test"}[0] is a map< string, list< integer > >
    // so we want to check that only word characters precede the "["
    final String open = Pattern.quote( openKey );
View Full Code Here

Examples of org.freezedry.persistence.keyvalue.renderers.decorators.StringDecorator

  {
    super( builder );
   
    this.openIndex = openIndex;
    this.closeIndex = closeIndex;
    this.indexDecorator = new StringDecorator( openIndex, closeIndex );
   
    // create the regular expression that determines if a string is renderered by this class
    // people[0] is a collection, but people{"test"}[0] is a map< string, list< integer > >
    // so we want to check that only word characters precede the "["
    final String open = Pattern.quote( openIndex );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.