Extension SDK 10.1.2

oracle.ide.model
Class DataNode

java.lang.Object
  extended byoracle.ide.model.DefaultDisplayable
      extended byoracle.ide.model.DefaultElement
          extended byoracle.ide.model.DefaultDocument
              extended byoracle.ide.model.DefaultNode
                  extended byoracle.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


Field Summary
protected  ObjectStore _objectStore
           
 
Fields inherited from interface oracle.ide.addin.Subject
OBJECT_MODIFIED
 
Fields inherited from interface oracle.ide.model.Category
UNDEFINED
 
Constructor Summary
DataNode()
          Default constructor.
DataNode(java.net.URL url)
           
 
Method Summary
 void close()
          Closes the Document and unloads any associated data.
protected  ObjectStore currentObjectStore()
           
protected  void fireObjectOpened()
          Convenience method for subclasses that want to handle themselves the firing of the OBJECT_OPENED notification.
 java.net.URL getURL()
          We override the getURL accessor here to mark the URL property as transient.
 void open()
          Document interface method.
protected  void open(boolean notify)
          This method uses ObjectStore to unmarshal the file into a JavaBean instance.
 void reopen()
           
 void save(boolean shallow)
          Document interface method.
 void setObjectStore(ObjectStore store)
           
 
Methods inherited from class oracle.ide.model.DefaultNode
equalsImpl, getCategory, setURL
 
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 oracle.ide.model.DefaultElement
getAttributes, getChildren, getData, mayHaveChildren
 
Methods inherited from class oracle.ide.model.DefaultDisplayable
getIcon, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.ide.model.Document
getInputStream, getTimestamp, isNew, isReadOnly
 
Methods inherited from interface oracle.ide.model.Element
getAttributes, getChildren, mayHaveChildren
 
Methods inherited from interface oracle.ide.model.Data
getData
 
Methods inherited from interface oracle.ide.model.Displayable
getIcon, getLongLabel, getShortLabel, getToolTipText, toString
 
Methods inherited from interface oracle.ide.addin.Subject
attach, detach, notifyObservers
 
Methods inherited from interface oracle.ide.model.Dirtyable
isDirty, markDirty
 
Methods inherited from interface oracle.ide.model.LazyLoadable
isOpen
 

Field Detail

_objectStore

protected transient ObjectStore _objectStore
Constructor Detail

DataNode

public DataNode()
Default constructor. Required for JavaBean status.


DataNode

public DataNode(java.net.URL url)
Method Detail

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.


Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.