Package javax.xml.rpc.holders

Examples of javax.xml.rpc.holders.LongHolder


        try {
            binding.allPrimitivesOut(
                    new StringHolder(),
                    new BigIntegerHolder(),
                    new IntHolder(),
                    new LongHolder(),
                    new ShortHolder(),
                    new BigDecimalHolder(),
                    new FloatHolder(),
                    new DoubleHolder(),
                    new BooleanHolder(),
View Full Code Here


        m.put("abcKey", "abcVal");
        m.put("defKey", "defVal");
        ret = JavaUtils.convert(m, Hashtable.class);
        assertTrue("Converted HashMap not a Hashtable", (ret instanceof Hashtable));

        LongHolder holder = new LongHolder(1);
        ret = JavaUtils.convert(holder, Object.class);
        assertTrue(ret != null);
        assertTrue(Long.class.isInstance(ret));

        ByteHolder holder2 = new ByteHolder((byte)0);
View Full Code Here

        try {
            binding.allPrimitivesInout(
                    new StringHolder(new String()),
                    new BigIntegerHolder(new BigInteger("0")),
                    new IntHolder(0),
                    new LongHolder(0),
                    new ShortHolder((short)0),
                    new BigDecimalHolder(new BigDecimal(0)),
                    new FloatHolder(0),
                    new DoubleHolder(0),
                    new BooleanHolder(true),
View Full Code Here

        try {
            binding.allPrimitivesOut(
                    new StringHolder(),
                    new BigIntegerHolder(),
                    new IntHolder(),
                    new LongHolder(),
                    new ShortHolder(),
                    new BigDecimalHolder(),
                    new FloatHolder(),
                    new DoubleHolder(),
                    new BooleanHolder(),
View Full Code Here

   public void testEchoOutSimpleTypes() throws Exception
   {
      StringHolder varString = new StringHolder();
      BigIntegerHolder varInteger = new BigIntegerHolder();
      IntHolder varInt = new IntHolder();
      LongHolder varLong = new LongHolder();
      ShortHolder varShort = new ShortHolder();
      BigDecimalHolder varDecimal = new BigDecimalHolder();
      FloatHolder varFloat = new FloatHolder();
      DoubleHolder varDouble = new DoubleHolder();
      BooleanHolder varBoolean = new BooleanHolder();
View Full Code Here

   public void testEchoInOutSimpleTypes() throws Exception
   {
      StringHolder varString = new StringHolder(_varString);
      BigIntegerHolder varInteger = new BigIntegerHolder(_varInteger);
      IntHolder varInt = new IntHolder(_varInt);
      LongHolder varLong = new LongHolder(_varLong);
      ShortHolder varShort = new ShortHolder(_varShort);
      BigDecimalHolder varDecimal = new BigDecimalHolder(_varDecimal);
      FloatHolder varFloat = new FloatHolder(_varFloat);
      DoubleHolder varDouble = new DoubleHolder(_varDouble);
      BooleanHolder varBoolean = new BooleanHolder(_varBoolean);
View Full Code Here

      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "echoLong"));
      call.addParameter("long_1", Constants.TYPE_LITERAL_LONG, ParameterMode.INOUT);
      call.setTargetEndpointAddress(TARGET_ENDPOINT_ADDRESS);

      LongHolder holder = new LongHolder(1);
      Object retObj = call.invoke(new Object[]{holder});
      assertNull(retObj);
      assertEquals(2, holder.value);
   }
View Full Code Here

        m.put("abcKey", "abcVal");
        m.put("defKey", "defVal");
        ret = JavaUtils.convert(m, Hashtable.class);
        assertTrue("Converted HashMap not a Hashtable", (ret instanceof Hashtable));

        LongHolder holder = new LongHolder(1);
        ret = JavaUtils.convert(holder, Object.class);
        assertTrue(ret != null);
        assertTrue(Long.class.isInstance(ret));

        ByteHolder holder2 = new ByteHolder((byte)0);
View Full Code Here

            binding.allPrimitivesInout(
                    new StringHolder(new String()),
                    new BigIntegerHolder(new BigInteger("0")),
                    new IntHolder(0),
                    new LongHolder(0),
                    new ShortHolder((short)0),
                    new BigDecimalHolder(new BigDecimal(0)),
                    new FloatHolder(0),
                    new DoubleHolder(0),
                    new BooleanHolder(true),
View Full Code Here

        try {
            binding.allPrimitivesOut(
                    new StringHolder(),
                    new BigIntegerHolder(),
                    new IntHolder(),
                    new LongHolder(),
                    new ShortHolder(),
                    new BigDecimalHolder(),
                    new FloatHolder(),
                    new DoubleHolder(),
                    new BooleanHolder(),
View Full Code Here

TOP

Related Classes of javax.xml.rpc.holders.LongHolder

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.