public String getOid() { return xQueryInterface.getOid(); }
public boolean isSame( Object aObject ) { return xQueryInterface.isSame( aObject ); }
public Object queryInterface( com.sun.star.uno.Type aType ) { return xQueryInterface.queryInterface( aType ); }
/** * Generates a world wide unique object identifier (OID) for the given * Java object. * * <p>It is guaranteed that subsequent calls to this method with the same * Java object will give the same ID.</p> * * <p>This method is generally of little use for client code. It should be * considered a mistake that this method is published at all.</p> * * @param object any object for which a OID shall be generated; must not be * <code>null</code> * @return the generated OID * @see com.sun.star.uno.IQueryInterface#getOid */ public static String generateOid(Object object) { String oid = null; if (object instanceof IQueryInterface) { oid = ((IQueryInterface) object).getOid(); } return oid == null ? object.hashCode() + oidSuffix : oid; }
object = ((IQueryInterface) object).queryInterface(type); if (object instanceof Any) { Any a = (Any) object;
/** * Generates a world wide unique object identifier (OID) for the given * Java object. * * <p>It is guaranteed that subsequent calls to this method with the same * Java object will give the same ID.</p> * * <p>This method is generally of little use for client code. It should be * considered a mistake that this method is published at all.</p> * * @param object any object for which a OID shall be generated; must not be * <code>null</code> * @return the generated OID * @see com.sun.star.uno.IQueryInterface#getOid */ public static String generateOid(Object object) { String oid = null; if (object instanceof IQueryInterface) { oid = ((IQueryInterface) object).getOid(); } return oid == null ? object.hashCode() + oidSuffix : oid; }
object = ((IQueryInterface) object).queryInterface(type); if (object instanceof Any) { Any a = (Any) object;