private static function checkProvidedUri($uri)
    {
        $returnValue = (string) '';

        
        if($uri != '') {
        	if(common_Utils::isUri($uri)){
        		$returnValue = $uri;
        	}
        	else{
        		throw new common_Exception("Could not create new Resource, malformed URI provided: '" . $uri . "'.");
        	}
        }
        else{
        	$returnValue = common_Utils::getNewUri();
        }
        

        return (string) $returnValue;
    }
private static function checkProvidedUri($uri)
    {
        $returnValue = (string) '';

        
        if($uri != '') {
        	if(common_Utils::isUri($uri)){
        		$returnValue = $uri;
        	}
        	else{
        		throw new common_Exception("Could not create new Resource, malformed URI provided: '" . $uri . "'.");
        	}
        }
        else{
        	$returnValue = common_Utils::getNewUri();
        }
        

        return (string) $returnValue;
    }
private static function checkProvidedUri ( $ uri ) { $ returnValue = ( string ) '' ; if ( $ uri != '' ) { if ( common_Utils :: isUri ( $ uri ) ) { $ returnValue = $ uri ; } else { throw new common_Exception ( "Could not create new Resource, malformed URI provided: '" . $ uri . "'." ) ; } } else { $ returnValue = common_Utils :: getNewUri ( ) ; } return ( string ) $ returnValue ; }
Short description of method checkProvidedUri

@access private
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  string uri
@return string
Short description of method checkProvidedUri