Code example for Logger

Methods: fine

0
	 *  
	 * @return true if the parameter is a well formed PLANETS URI 
	 */ 
	public boolean isPlanetsURI() { 
		// Check for nulls 
		PDURI._log.fine("isPlanetsURI()");
		if ((this._host == null) | (this._scheme == null)) {
			return false; 
		} 
		PDURI._log.fine("isPlanetsURI() Checks");
		// Now perform the checks and return the result 
		return ((this._port > -1) && (this._host.length() > 0) && this._scheme.equals(PLANETS_SCHEME));
	} 
	 
	/** 
	 * Checks to see if a URI is a PLANETS Data Registry URI 
	 * The URI argument must be of the following form: 
	 * <p/> 
	 * <code>planets://<i>server:port</i>/dr/</code> 
	 *  
	 * @return true if the URI is a PLANETS data URI 
	 */ 
	public boolean isDataRegistryURI() { 
		boolean _retVal = false;
		PDURI._log.fine("isDataRegistryURI()");
		if (this.isPlanetsURI()) {
			PDURI._log.fine("isDataRegistryURI() checks");
			_retVal = (this._registryTag.toLowerCase().equals(DATA_REG_PART));
		} 
		return _retVal;
	}