/** * Determines whether or not the specified element represents a map package. * * @param element * the element to validate * @return <code>true</code> only when this element represents a map package and has the type of {@link File}. */ public static boolean isMapPackage(Object element) { if (element instanceof File) { return ((File) element).getName().endsWith(".mpk"); } return false; }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.