Package flexjson.transformer

Examples of flexjson.transformer.TransformerWrapper


     * @param transformer the instance used to transform values
     * @param fields      the paths to the fields you want to transform.  They can be in dot notation.
     * @return Hit you back with the JSONSerializer for method chain goodness.
     */
    public JSONSerializer transform(Transformer transformer, String... fields) {
        transformer = new TransformerWrapper(transformer);
        for (String field : fields) {
            if (field.length() == 0) {
                pathTransformerMap.put(new Path(), transformer);
            } else {
                pathTransformerMap.put(new Path(field.split("\\.")), transformer);
View Full Code Here


     * @param types       you want to transform.
     * @return Hit you back with the JSONSerializer for method chain goodness.
     */
    public JSONSerializer transform(Transformer transformer, Class... types) {

        transformer = new TransformerWrapper(transformer);
       
        for (Class type : types) {
            typeTransformerMap.putTransformer(type, transformer);
        }

View Full Code Here

   * @param fields      the paths to the fields you want to transform.  They can be in dot notation.
   * @return Hit you back with the JSONSerializer for method chain goodness.
   */
  public JSONSerializer transform(Transformer transformer, String... fields)
  {
    transformer= new TransformerWrapper(transformer);
    for (String field : fields)
    {
      if (field.length() == 0)
      {
        pathTransformerMap.put(new Path(), transformer);
View Full Code Here

   * @return Hit you back with the JSONSerializer for method chain goodness.
   */
  public JSONSerializer transform(Transformer transformer, Class... types)
  {

    transformer= new TransformerWrapper(transformer);

    for (Class type : types)
    {
      typeTransformerMap.put(type, transformer);
    }
View Full Code Here

    {
      transformer= getTypeTransformer(object);
    }

    if (transformer == null)
      transformer= new TransformerWrapper(new NullTransformer());

    transformer.transform(object);

  }
View Full Code Here

TOP

Related Classes of flexjson.transformer.TransformerWrapper

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.