Examples of SerialContext


Examples of com.alibaba.fastjson.serializer.SerialContext

import com.alibaba.fastjson.serializer.SerialContext;


public class SerialContextTest extends TestCase {
    public void test_context() throws Exception {
        SerialContext root = new SerialContext(null, null, null);
        SerialContext context = new SerialContext(root, null, "x");
        Assert.assertEquals("x", context.getFieldName());
        Assert.assertEquals("$.x", context.toString());
    }
View Full Code Here

Examples of com.alibaba.fastjson.serializer.SerialContext

          return true;
      return false;
    }

    public boolean apply(JSONSerializer serializer, Object source, String name) {
      SerialContext nowContext = new SerialContext(serializer.getContext(), source, name);
      String nowPath = getLinkedPath(nowContext);
      System.out.println("path->" + nowPath);
      //只输出children.id
      return containInclude(onlyProperties, nowPath);
    }
View Full Code Here

Examples of com.alibaba.fastjson.serializer.SerialContext

          return true;
      return false;
    }

    public boolean apply(JSONSerializer serializer, Object source, String name) {
      SerialContext nowContext = new SerialContext(serializer.getContext(), source, name, 0, 0);
      String nowPath = getLinkedPath(nowContext);
      System.out.println("path->" + nowPath);
      //只输出children.id
      return containInclude(onlyProperties, nowPath);
    }
View Full Code Here

Examples of com.alibaba.fastjson.serializer.SerialContext

import com.alibaba.fastjson.serializer.SerialContext;


public class SerialContextTest extends TestCase {
    public void test_context() throws Exception {
        SerialContext root = new SerialContext(null, null, null, 0, 0);
        SerialContext context = new SerialContext(root, null, "x", 0, 0);
        Assert.assertEquals("x", context.getFieldName());
        Assert.assertEquals("$.x", context.toString());
    }
View Full Code Here

Examples of com.sun.enterprise.naming.SerialContext

  env.put("com.sun.appserv.ee.iiop.endpointslist",
    CORBALOC + corbalocURL)
  env.put(ORBManager.JNDI_CORBA_ORB_PROPERTY, ORBManager.getORB());
 
  return new SerialContext(env);
   
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.