/** * Checks if the scheme of this identifier equals the specified scheme. * * @param scheme the scheme to check for, null returns true * @return true if the schemes are different */ public boolean isNotScheme(String scheme) { return _scheme.getName().equals(scheme) == false; }
/** * Checks if the scheme of this identifier equals the specified scheme. * * @param scheme the scheme to check for, null returns false * @return true if the schemes match */ public boolean isScheme(String scheme) { return _scheme.getName().equals(scheme); }