Source code: javax/ide/net/URIExistsTest.java
1 /*
2 * @(#)URIExistsTest.java
3 *
4 * Copyright 2003 by Oracle Corporation,
5 * 500 Oracle Parkway, Redwood Shores, California, 94065, U.S.A.
6 * All rights reserved.
7 *
8 * This software is the confidential and proprietary information
9 * of Oracle Corporation.
10 */
11
12 package javax.ide.net;
13
14 import java.net.URI;
15
16 /**
17 * An instance of <CODE>URIExistsTest</CODE> registered with the
18 * {@link VirtualFileSystem} provides a way for the IDE to detect
19 * whether a particular URI is already in use.
20 */
21 public interface URIExistsTest
22 {
23 /**
24 * Returns <CODE>false</CODE> if the specified {@link URI} is
25 * unique. An {@link URI} is unique if it points to a resource
26 * that does not currently exist, either at the actual location
27 * or within any in-memory caches (at implementor's discretion).
28 * Returns <CODE>true</CODE> otherwise.
29 */
30 public boolean uriExists( URI uri );
31 }