Extension SDK 10.1.2

oracle.ide.model
Class DefaultNode

java.lang.Object
  extended byoracle.ide.model.DefaultDisplayable
      extended byoracle.ide.model.DefaultElement
          extended byoracle.ide.model.DefaultDocument
              extended byoracle.ide.model.DefaultNode
All Implemented Interfaces:
Category, Data, Dirtyable, Displayable, Document, Element, LazyLoadable, Locatable, Node, Subject
Direct Known Subclasses:
DatabaseEditorNode, DataNode, DefaultContainer, ImageNode, JavaClassNode, PropertiesNode, TextNode, XMLDataNode

public abstract class DefaultNode
extends DefaultDocument
implements Node

The DefaultNode class is a default implementation of the Node interface.

No copy constructor is implemented because of the problems with Node caching that would come up.

See Also:
DefaultDocument, Node

Field Summary
 
Fields inherited from interface oracle.ide.addin.Subject
OBJECT_MODIFIED
 
Fields inherited from interface oracle.ide.model.Category
UNDEFINED
 
Constructor Summary
DefaultNode()
          Default constructor is required for JavaBean status.
DefaultNode(java.net.URL url)
          Constructor that takes an URL pointing to the persistent location of the DefaultNode's contents.
 
Method Summary
protected  boolean equalsImpl(DefaultNode node)
          This is a helper method for Object.equals(Object) that can also be used by subclasses that implement Object.equals(Object).
 int getCategory()
          Get the bit field identifying the different categories this data node falls under.
 void setURL(java.net.URL newURL)
          Sets the URL associated with this DefaultNode and recaches the DefaultNode in the NodeFactory with the new URL so that subsequent queries for the DefaultNode will return successfully.
 
Methods inherited from class oracle.ide.model.DefaultDocument
attach, close, copyToImpl, createSubject, detach, ensureOpen, equalsImpl, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampDirectly, getToolTipText, getURL, isDirty, isNew, isOpen, isReadOnly, markDirty, notifyObservers, open, refreshTimestamp, save, 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
close, getInputStream, getTimestamp, isNew, isReadOnly, open, save
 
Methods inherited from interface oracle.ide.model.Locatable
getURL
 
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
 

Constructor Detail

DefaultNode

public DefaultNode()
Default constructor is required for JavaBean status. All subclasses must have a public default constructor.


DefaultNode

public DefaultNode(java.net.URL url)
Constructor that takes an URL pointing to the persistent location of the DefaultNode's contents.

Parameters:
url - URL identifying the persistent location of the DefaultNode.
Method Detail

setURL

public void setURL(java.net.URL newURL)
Sets the URL associated with this DefaultNode and recaches the DefaultNode in the NodeFactory with the new URL so that subsequent queries for the DefaultNode will return successfully.

Specified by:
setURL in interface Locatable
Overrides:
setURL in class DefaultDocument
See Also:
Locatable.setURL(URL), DefaultDocument.setURL(URL)

getCategory

public int getCategory()
Description copied from interface: Category
Get the bit field identifying the different categories this data node falls under.

Specified by:
getCategory in interface Category
Returns:
the category types.

equalsImpl

protected final boolean equalsImpl(DefaultNode node)
This is a helper method for Object.equals(Object) that can also be used by subclasses that implement Object.equals(Object). It assumes that the argument is not null.


Extension SDK

 

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