From b51469b41167fb86ae2059a15cf0475c53fdda7b Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Mon, 20 Oct 2014 11:40:05 -0230 Subject: Down with ant. From the gradle to the grave. --- java/src/Ice/ObjectPrxHelper.java | 157 -------------------------------------- 1 file changed, 157 deletions(-) delete mode 100644 java/src/Ice/ObjectPrxHelper.java (limited to 'java/src/Ice/ObjectPrxHelper.java') diff --git a/java/src/Ice/ObjectPrxHelper.java b/java/src/Ice/ObjectPrxHelper.java deleted file mode 100644 index c390823e61f..00000000000 --- a/java/src/Ice/ObjectPrxHelper.java +++ /dev/null @@ -1,157 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -package Ice; - -/** - * Base class for all proxy helpers. - **/ -public class ObjectPrxHelper extends ObjectPrxHelperBase -{ - /** - * Casts a proxy to {@link Ice.ObjectPrx}. This call contacts - * the server and will throw an Ice run-time exception if the target - * object does not exist or the server cannot be reached. - * - * @param b The proxy to cast to @{link Ice.ObjectPrx}. - * @return b. - **/ - public static ObjectPrx - checkedCast(Ice.ObjectPrx b) - { - return b; - } - - /** - * Casts a proxy to {@link Ice.ObjectPrx}. This call contacts - * the server and throws an Ice run-time exception if the target - * object does not exist or the server cannot be reached. - * - * @param b The proxy to cast to {@link Ice.ObjectPrx}. - * @param ctx The Context map for the invocation. - * @return b. - **/ - public static ObjectPrx - checkedCast(Ice.ObjectPrx b, java.util.Map ctx) - { - return b; - } - - /** - * Creates a new proxy that is identical to the passed proxy, except - * for its facet. This call contacts - * the server and throws an Ice run-time exception if the target - * object does not exist, the specified facet does not exist, or the server cannot be reached. - * - * @param b The proxy to cast to {@link Ice.ObjectPrx}. - * @param f The facet for the new proxy. - * @return The new proxy with the specified facet. - **/ - public static ObjectPrx - checkedCast(Ice.ObjectPrx b, String f) - { - ObjectPrx d = null; - if(b != null) - { - Ice.ObjectPrx bb = b.ice_facet(f); - try - { - boolean ok = bb.ice_isA("::Ice::Object"); - assert(ok); - ObjectPrxHelper h = new ObjectPrxHelper(); - h.__copyFrom(bb); - d = h; - } - catch(Ice.FacetNotExistException ex) - { - } - } - return d; - } - - /** - * Creates a new proxy that is identical to the passed proxy, except - * for its facet. This call contacts - * the server and throws an Ice run-time exception if the target - * object does not exist, the specified facet does not exist, or the server cannot be reached. - * - * @param b The proxy to cast to {@link Ice.ObjectPrx}. - * @param f The facet for the new proxy. - * @param ctx The Context map for the invocation. - * @return The new proxy with the specified facet. - **/ - public static ObjectPrx - checkedCast(Ice.ObjectPrx b, String f, java.util.Map ctx) - { - ObjectPrx d = null; - if(b != null) - { - Ice.ObjectPrx bb = b.ice_facet(f); - try - { - boolean ok = bb.ice_isA("::Ice::Object", ctx); - assert(ok); - ObjectPrxHelper h = new ObjectPrxHelper(); - h.__copyFrom(bb); - d = h; - } - catch(Ice.FacetNotExistException ex) - { - } - } - return d; - } - - /** - * Casts a proxy to {@link Ice.ObjectPrx}. This call does - * not contact the server and always succeeds. - * - * @param b The proxy to cast to {@link Ice.ObjectPrx}. - * @return b. - **/ - public static ObjectPrx - uncheckedCast(Ice.ObjectPrx b) - { - return b; - } - - /** - * Creates a new proxy that is identical to the passed proxy, except - * for its facet. This call does not contact the server and always succeeds. - * - * @param b The proxy to cast to {@link Ice.ObjectPrx}. - * @param f The facet for the new proxy. - * @return The new proxy with the specified facet. - **/ - public static ObjectPrx - uncheckedCast(Ice.ObjectPrx b, String f) - { - ObjectPrx d = null; - if(b != null) - { - Ice.ObjectPrx bb = b.ice_facet(f); - ObjectPrxHelper h = new ObjectPrxHelper(); - h.__copyFrom(bb); - d = h; - } - return d; - } - - /** - * Returns the Slice type id of the interface or class associated - * with this proxy class. - * - * @return the type id, "::Ice::Object" - **/ - public static String - ice_staticId() - { - return Ice.ObjectImpl.ice_staticId(); - } -} -- cgit v1.2.3