Java URI Value Check isModuleURI(URI uri)

Here you can find the source of isModuleURI(URI uri)

Description

is Module URI

License

Open Source License

Return

the Module URI of a

Declaration

public static Boolean isModuleURI(URI uri) 

Method Source Code

//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());
    }
}

Related

  1. isLocal(final URI uri)
  2. isLocalFile(URI uri)
  3. isLocalFile(URI uri)
  4. isLocalUri(String uriString)
  5. isLocalURI(URI uri)
  6. isNormalized(String uriName)
  7. isOnTrustedUriWhiteList(final URI uri)
  8. isOriginForm(URI uri)
  9. isPrefix(final URI source, final URI other)