|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.borland.primetime.node.Node | +--com.borland.primetime.node.UrlNode
UrlNode is an abstract class that defines methods common to FileNode and Project.
Fields inherited from class com.borland.primetime.node.Node |
EMPTY_ARRAY, nodeListeners |
Method Summary | |
Url |
getSuggestedUrl()
Hook for future use. |
abstract Url |
getUrl()
Returns the node's associated Url. |
abstract boolean |
isModified()
Return if any existing Buffer for this Node is modified or not. |
abstract boolean |
isNew()
Returns whether nor the Url filesystem is the NewFilesystem. |
abstract void |
rename(Url url)
Attempt to rename Node (it is not allowed to change the type of a Node) to match the given Url. |
abstract void |
revert()
Attempt to revert the file associated with this Node by reloading it from storage. |
abstract void |
save()
Attempt to save Node (unless it is using the NewFilesystem). |
abstract void |
saveAs(Url url)
Attempt to save Node (it is not allowed to change the type of a Node) to the given Url (overwriting existing files) causing a name change if needed. |
Methods inherited from class com.borland.primetime.node.Node |
addNodeListener, check, compareTo, dumpNodes, dumpNodes, dumpNodes, equals, fireNodeRenamed, getChildren, getDisplayChildren, getDisplayIcon, getDisplayName, getDisplaySequence, getLongDisplayName, getNodeID, getParent, getProject, getProperties, getProperty, getProperty, getProperty, hasChildren, hasDisplayChildren, hashCode, isPersistant, makePersistant, removeNodeListener, setParent, setProperty, setProperty, setProperty, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public abstract Url getUrl()
public abstract void revert() throws java.io.IOException
java.io.IOException
- If the Url specifies a resource that could
not be successfully reverted.public abstract void save() throws java.io.IOException, InvalidUrlException
java.io.IOException
- InvalidUrlException
- public abstract void saveAs(Url url) throws java.io.IOException, InvalidUrlException, DuplicateNodeException
url
- Url with new name where to save.java.io.IOException
- InvalidUrlException
- DuplicateNodeException
- public abstract void rename(Url url) throws java.io.IOException, InvalidUrlException, DuplicateNodeException, ReadOnlyException
url
- Url with new name.java.io.IOException
- InvalidUrlException
- DuplicateNodeException
- ReadOnlyException
- public abstract boolean isModified()
isModified
in class Node
public abstract boolean isNew()
NewFilesystem
public Url getSuggestedUrl()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |