code: public void setURI( URI uri )
      {
  
          if ( uri == null )
          {
              setScheme( null );
              setUserInfo( null );
              setHost( null );
              setPort( UNDEFINED_PORT );
              setPath( null );
              setQuery( null );
              setFragment( null );
          }
          else if ( uri.isOpaque() )
          {
              setUserInfo( null );
              setHost( null );
              setPort( UNDEFINED_PORT );
              setPath( null );
              setQuery( null );
              setOpaque( uri.getScheme(), uri.getSchemeSpecificPart() );
              setFragment( uri.getRawFragment() );
          }
          else
          {
              setSchemeSpecificPart( null );
              setScheme( uri.getScheme() );
              setUserInfo( uri.getRawUserInfo() );
              setHost( uri.getHost() );
              setPort( uri.getPort() );
              setPath( uri.getRawPath() );
              setQuery( uri.getRawQuery() );
              setFragment( uri.getRawFragment() );
          }
      }
docs: Set the value of the <code>MutableURI</code>.
  
  <p> This method can also be used to clear the <code>MutableURI</code>. </p>
  
  @param  uri       the URI