|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.file.ContentSetRoot
public final class ContentSetRoot
A single root directory in a ContentSet
.
Method Summary | |
---|---|
FileSet |
asFileSet() Get a file set that contains the files in this root. |
static Path |
asPath(java.util.Collection<ContentSetRoot> roots) Convert a collection of content set roots to a Path . |
boolean |
contains(java.net.URL url) Determine whether this root contains a URL. |
boolean |
equals(java.lang.Object object) |
static java.util.Collection<ContentSetRoot> |
getContentSetRoots(Project project) Get the content set roots for a project. |
static java.util.Collection<ContentSetRoot> |
getContentSetRoots(Project project, ContentSet contentSet) Get the content set roots for a specific content set of a project. |
static java.util.Collection<ContentSetRoot> |
getContentSetRoots(Workspace workspace) Get the content set roots for an application. |
static java.util.Collection<ContentSetRoot> |
getContentSetRoots(Workspace workspace, ContentSet contentSet) Get the content set roots for a specific content set of an application. |
static java.util.Collection<ContentSetRoot> |
getContentSetRootsContaining(Project project, java.net.URL url) Returns the content set roots in the project that contain a specific URL. |
static java.util.Collection<ContentSetRoot> |
getContentSetRootsContaining(java.net.URL url) Returns the content set roots that contain a specific URL. |
FileSetFilter |
getFilter() Get the filter of this content set root. |
static ContentSetRoot |
getInstance(Project project, FileSet fileSet) |
Project |
getProject() Get the project for this root, or null if this root is not associated with a project. |
java.net.URL |
getURL() Get the root URL for this content set root. |
int |
hashCode() |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Collection<ContentSetRoot> getContentSetRoots(@NotNull
Workspace workspace)
workspace
- the application workspacepublic static java.util.Collection<ContentSetRoot> getContentSetRoots(@NotNull Workspace workspace, @NotNull ContentSet contentSet)
workspace
- the application workspacecontentSet
- the content set
public static java.util.Collection<ContentSetRoot> getContentSetRoots(@NotNull
Project project)
project
- the projectpublic static java.util.Collection<ContentSetRoot> getContentSetRoots(@NotNull Project project, @NotNull ContentSet contentSet)
project
- the projectcontentSet
- the content setpublic static Path asPath(java.util.Collection<ContentSetRoot> roots)
Path
.roots
- the rootsPath
public static java.util.Collection<ContentSetRoot> getContentSetRootsContaining(@NotNull
java.net.URL url)
It is significant that this method does not take a Context
, Project
, or Workspace
as a parameter. The only case where callers should ever need to use this method is precisely when they don't know the context for the URL. If a caller knows the context, they should already know where to find the URL. Specifically, in cases where the caller knows what Project
the URL is part of, they should use the getContentSetRootsContaining(Project,URL)
method instead.
The only legitimate use of this method is in cases where the URL has come from a source outside of the IDE. For example, a source control system or file system might delvier an event about a file. In such cases, since the event originated outside the IDE, there is no IDE context associated with it. The only choice in that case is to call this method to find the appropriate context(s).
url
- the URLpublic static java.util.Collection<ContentSetRoot> getContentSetRootsContaining(@NotNull Project project, @NotNull java.net.URL url)
project
- the projecturl
- the URLpublic static ContentSetRoot getInstance(Project project, FileSet fileSet)
public Project getProject()
null
if this root is not associated with a project.null
if this root is not associated with a projectpublic java.net.URL getURL()
public FileSetFilter getFilter()
public boolean contains(java.net.URL url)
GlobalIgnoreList
filters or any other filters.url
- the URLtrue
if this root contains the given URL, false
otherwisepublic FileSet asFileSet()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |