|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.vcs.util.VCSModelUtils
Utility class for document model operations.
Method Summary | |
static java.net.URL[] |
convertNodesToURLs(java.util.Collection locatables)
Converts the given locatables into their associated URLs. |
static java.net.URL[] |
convertNodesToURLs(Locatable[] locatables)
Converts the given locatables into their associated URLs. |
static Node[] |
findCachedNodes(URLFilter filter)
Finds nodes cached in the IDE whose files satisfy the given URL filter. |
static Locatable[] |
findOrCreateNodes(java.net.URL[] urls)
Finds or creates locatables for the given URLs, using the node cache. |
static Node[] |
getCachedBaseURLNodes(java.net.URL[] baseUrls)
Gets all cached nodes with URLs underneath the given base URLs. |
static Node[] |
getCachedDirectoryNodes(java.net.URL[] directoryUrls)
Gets all cached nodes with URLs in the given directories. |
static Document[] |
getDirtyDocuments(Document[] documents)
Gets the documents from the given selection which are dirty. |
static java.net.URL |
getLocatableURL(java.lang.Object node)
Gets the given node's URL, if the node is a locatable. |
static Locatable[] |
getValidLocatables(java.lang.Object[] nodes,
URLFilter filter)
Gets the valid locatables from the given node selection. |
static boolean |
isElementSaveUpdate(java.lang.Object observed,
UpdateMessage change)
Asks whether the given update message indicates that the observed node has been saved. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final Locatable[] findOrCreateNodes(java.net.URL[] urls)
urls
- the array of URLs for the nodes to find or create.
public static final java.net.URL[] convertNodesToURLs(Locatable[] locatables)
public static final java.net.URL[] convertNodesToURLs(java.util.Collection locatables)
public static final boolean isElementSaveUpdate(java.lang.Object observed, UpdateMessage change)
observed
- the observed subject.change
- the update message.
public static final Locatable[] getValidLocatables(java.lang.Object[] nodes, URLFilter filter)
nodes
- the original node selection.filter
- a filter that accepts valid locatable URLs.
(null-capable)
public static final java.net.URL getLocatableURL(java.lang.Object node)
(node
instanceof Locatable ? ((Locatable)node).getURL() : null)
.
node
- the node.
public static final Node[] findCachedNodes(URLFilter filter)
filter
- a filter that accepts URLs for cached nodes.
(null-capable)
public static final Document[] getDirtyDocuments(Document[] documents)
documents
- an array of documents.
public static final Node[] getCachedDirectoryNodes(java.net.URL[] directoryUrls)
directoryUrls
- the array of directories for returned cached nodes.
public static final Node[] getCachedBaseURLNodes(java.net.URL[] baseUrls)
baseUrls
- the array of base URLs for returned cached nodes.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.