Here you can find the source of isModuleURI(URI uri)
public static Boolean isModuleURI(URI uri)
//package com.java2s; /******************************************************************************* * Copyright (c) 2011 Sierra Wireless and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors://from ww w . j a va 2 s . com * Sierra Wireless - initial API and implementation *******************************************************************************/ import java.net.URI; public class Main { public static final String MODULE_SCHEME = "module"; /** * @return the Module URI of a {@link ISourceModule} */ public static Boolean isModuleURI(URI uri) { return MODULE_SCHEME.equalsIgnoreCase(uri.getScheme()); } }