oracle.ide.model
Class DataNode
java.lang.Object
oracle.ide.model.DefaultDisplayable
oracle.ide.model.DefaultElement
oracle.ide.model.DefaultDocument
oracle.ide.model.DefaultNode
oracle.ide.model.DataNode
- All Implemented Interfaces:
- Category, Data, Dirtyable, Displayable, Document, Element, LazyLoadable, Locatable, Node, Subject
- Direct Known Subclasses:
- DataContainer, JLibraryList
- public class DataNode
- extends DefaultNode
Methods inherited from class oracle.ide.model.DefaultDocument |
attach, copyToImpl, createSubject, detach, ensureOpen, equalsImpl, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampDirectly, getToolTipText, isDirty, isNew, isOpen, isReadOnly, markDirty, notifyObservers, refreshTimestamp, setOpen, setTimestampDirectly, setURLDirectly |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.ide.model.Data |
getData |
_objectStore
protected transient ObjectStore _objectStore
DataNode
public DataNode()
- Default constructor. Required for JavaBean status.
DataNode
public DataNode(java.net.URL url)
getURL
public java.net.URL getURL()
throws TransientMarker
- We override the getURL accessor here to mark the URL property
as transient.
- Specified by:
getURL
in interface Locatable
- Overrides:
getURL
in class DefaultDocument
- Throws:
TransientMarker
- See Also:
Locatable.getURL()
open
public void open()
throws java.io.IOException
Document
interface method. This method uses
ObjectStore
to unmarshal the file into a JavaBean
instance. This method sends OBJECT_OPENED notification
to observers. Such notification in an invoke later event.
- Specified by:
open
in interface Document
- Overrides:
open
in class DefaultDocument
- Throws:
java.io.IOException
- See Also:
ObjectStore
close
public void close()
- Description copied from interface:
Document
- Closes the
Document
and unloads any associated data.
When this method returns, the state of the Document
object should be equivalent to when the Document
object has just been instantiated but not yet opened.
- Specified by:
close
in interface Document
- Overrides:
close
in class DefaultDocument
- See Also:
Document.close()
reopen
public void reopen()
throws java.io.IOException
- Throws:
java.io.IOException
save
public void save(boolean shallow)
throws java.io.IOException
Document
interface method. This method uses
Object2Dom
to marshal the underlying JavaBean into an XML
form.
- Specified by:
save
in interface Document
- Overrides:
save
in class DefaultDocument
- Throws:
java.io.IOException
- See Also:
Object2Dom
setObjectStore
public void setObjectStore(ObjectStore store)
currentObjectStore
protected ObjectStore currentObjectStore()
open
protected void open(boolean notify)
throws java.io.IOException
- This method uses
ObjectStore
to unmarshal the file into a
JavaBean instance. In addition, subclasses can call this method
and indicate that the should not send OBJECT_OPENED notification
to observers. This method sends OBJECT_OPENED notification in an
invoke later event.
- Throws:
java.io.IOException
- See Also:
ObjectStore
fireObjectOpened
protected void fireObjectOpened()
- Convenience method for subclasses that want to handle themselves
the firing of the OBJECT_OPENED notification.
Copyright © 1997, 2004, Oracle. All rights reserved.