oracle.ide.model
Class DefaultNode
java.lang.Object
oracle.ide.model.DefaultDisplayable
oracle.ide.model.DefaultElement
oracle.ide.model.DefaultDocument
oracle.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.ide.model.Data |
getData |
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
.
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
.
Copyright © 1997, 2004, Oracle. All rights reserved.