Java URI Value Check isType(URI uri, Class clazz)

Here you can find the source of isType(URI uri, Class clazz)

Description

is Type

License

Open Source License

Declaration

@SuppressWarnings("rawtypes")
    public static boolean isType(URI uri, Class clazz) 

Method Source Code


//package com.java2s;
import java.net.URI;

public class Main {
    @SuppressWarnings("rawtypes")
    public static boolean isType(URI uri, Class clazz) {
        String simpleName = clazz.getSimpleName();
        return uri.toString().startsWith("urn:storageos:" + simpleName);
    }/* w w  w .  ja v a  2 s .c o m*/
}

Related

  1. isRoot(URI uri)
  2. isSecure(final URI uri)
  3. isSecure(URI uri)
  4. isShortTcpURI(URI resource)
  5. isSystemIdentifier(URI localIdentifier)
  6. isType(URI uri, String name)
  7. isURI(Class type)
  8. isURI(String plainString)
  9. isURI(String uri)