Trovit/src/main/java/org/openestate/io/trovit/TrovitUtils.java
public static String printUriValue(URI value) {
        if (value == null)
            throw new IllegalArgumentException("Can't print empty URI value!");
        if ("http".equalsIgnoreCase(value.getScheme()))
            return value.toString();
        if ("https".equalsIgnoreCase(value.getScheme()))
            return value.toString();

        throw new IllegalArgumentException("Can't print URI '" + value + "' because of an unsupported scheme!");
    }
public static String printUriValue(URI value) {
        if (value == null)
            throw new IllegalArgumentException("Can't print empty URI value!");
        if ("http".equalsIgnoreCase(value.getScheme()))
            return value.toString();
        if ("https".equalsIgnoreCase(value.getScheme()))
            return value.toString();

        throw new IllegalArgumentException("Can't print URI '" + value + "' because of an unsupported scheme!");
    }
public static String printUriValue ( URI value ) { if ( value == null ) throw new IllegalArgumentException ( "Can't print empty URI value!" ) ; if ( "http" . equalsIgnoreCase ( value . getScheme ( ) ) ) return value . toString ( ) ; if ( "https" . equalsIgnoreCase ( value . getScheme ( ) ) ) return value . toString ( ) ; throw new IllegalArgumentException ( "Can't print URI '" + value + "' because of an unsupported scheme!" ) ; }
Write an {@link URI} value into XML output.

@param value value to write
@return XML string
@throws IllegalArgumentException if a validation error occurred
Write an { @link URI } value into XML output .