Package com.test.jsonwebservice.rpc

Examples of com.test.jsonwebservice.rpc.Object


    reservedObje.setBoolean(true);
    return reservedObje;
  }

  private static com.test.jsonwebservice.rpc.Object getObject() {
    Object obj = new Object();
    obj.setProperty1((int)System.currentTimeMillis());
    return obj;
  }
View Full Code Here


  public EnumConst test15EnumInEnumOut(EnumConst enumConst) {
    return enumConst;
  }

  public Object test16EmptyInObjectOut() {
    Object obj = new Object();
    obj.setProperty1(1);
    return obj;
  }
View Full Code Here

  public String test19ObjectInStringOut(Object object) {
    return String.valueOf(object.getProperty1());
  }

  public Object test20StringInObjectOut(String string) {
    Object obj = new Object();
    try{
      obj.setProperty1(Integer.parseInt(string));
    }catch(NumberFormatException e){
      obj.setProperty1(-1);
    }
    return obj;
  }
View Full Code Here

  public int test21ObjectInNumberOut(Object object) {
    return object.getProperty1();
  }

  public Object test22NumberInObjectOut(int integer) {
    Object obj = new Object();
    obj.setProperty1(integer);
    return obj;
  }
View Full Code Here

  public Object test24EnumInObjectOut(EnumConst enumConst) {
    if(enumConst == null){
      throw new RuntimeException();
    }
    return new Object();
  }
View Full Code Here

  public void test40EmptyInObjectStringOut(Holder<Object> object,
      Holder<String> string) {
    if(object == null || string == null)
      throw new RuntimeException();
    Object o = new Object();
    o.setProperty1(1);
    object.value  = o;
    string.value  = "SSS";
  }
View Full Code Here

  public void test42EmptyInStringObjectOut(Holder<String> string,
      Holder<Object> object) {
    if(object == null || string == null)
      throw new RuntimeException();
    string.value  = "DD";
    Object o = new Object();
    o.setProperty1(1);
    object.value  = o;
   
  }
View Full Code Here

public class JAXBAnnotationTestImpl implements JAXBAnnotationTest {

  public XmlElementsObj test1EmptyInXmlElementsOut() {
    XmlElementsObj elements = new XmlElementsObj();
    List<java.lang.Object> objectList = elements.getObjectOrObjectReservedOrMapObject();
    Object ob = new Object();ob.setProperty1(1);
    objectList.add(ob);
    ob = new Object();ob.setProperty1(2);
    objectList.add(ob);
    ObjectReservedFields obRes = new ObjectReservedFields();
    obRes.setBoolean(true);obRes.setEnum(EnumConst.CONST_2);obRes.setFloat(1.2f);obRes.setInt(1);obRes.setString("SS");
    objectList.add(obRes);
    MapObject  mapOb = new MapObject();
    mapOb.setKeyProperty1(1);mapOb.setKeyProperty2("KK");mapOb.setProperty1(true);mapOb.setValueProperty1(2);mapOb.setValueProperty2("DD");
    objectList.add(mapOb);
    // Object order test
    ob = new Object();ob.setProperty1(3);
    objectList.add(ob);
    return elements;
  }
View Full Code Here

  public XmlElementsWrapperObj test4EmptyInXmlElementsWrapOut() {
    XmlElementsWrapperObj elementsWrap = new XmlElementsWrapperObj();
    XmlElementsObj elements = new XmlElementsObj();
    List<java.lang.Object> objectList = elements.getObjectOrObjectReservedOrMapObject();
    Object ob = new Object();ob.setProperty1(1);
    objectList.add(ob);
    ob = new Object();ob.setProperty1(2);
    objectList.add(ob);
    ObjectReservedFields obRes = new ObjectReservedFields();
    obRes.setBoolean(true);obRes.setEnum(EnumConst.CONST_2);obRes.setFloat(1.2f);obRes.setInt(1);obRes.setString("SS");
    objectList.add(obRes);
    MapObject  mapOb = new MapObject();
View Full Code Here

  }

  public XmlElementsSeqObj test7EmptyInXmlElementsSeqOut() {
    XmlElementsSeqObj xmlElementSeq = new XmlElementsSeqObj();
    List<java.lang.Object> objectList = xmlElementSeq.getObjectAndObjectReservedAndMapObject();
    Object ob = new Object();ob.setProperty1(1);
    objectList.add(ob);
    ob = new Object();ob.setProperty1(2);
    objectList.add(ob);
    ObjectReservedFields obRes = new ObjectReservedFields();
    obRes.setBoolean(true);obRes.setEnum(EnumConst.CONST_1);obRes.setFloat(1.2f);obRes.setInt(1);obRes.setString("rr");
    objectList.add(obRes);
    MapObject  mapOb = new MapObject();
View Full Code Here

TOP

Related Classes of com.test.jsonwebservice.rpc.Object

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.