Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.jdeveloper.model
Class JavaClassNode

java.lang.Object
  extended by oracle.ide.model.Node
      extended by oracle.ide.model.TextNode
          extended by oracle.ide.model.DeployableTextNode
              extended by oracle.jdeveloper.model.JavaNode
                  extended by oracle.jdeveloper.model.JavaClassNode
All Implemented Interfaces:
Displayable, Element, LazyLoadable, Locatable, Subject, Dirtyable

public final class JavaClassNode
extends JavaNode

The JavaNode interface represents a Java class element in the JDeveloper browser. A JavaNode could be either a .class file or a .java file; however, JDeveloper normally represents a .java file with the JavaSourceNode, which extends JavaNode.

In addition to providing the usual Node features, a JavaNode provides access to both a code-level view (through the JOT subsystem) and a component view (through the CMT subsystem) of the Java class.

See Also:
JavaSourceNode

Field Summary
static java.lang.String EXT
           
 
Fields inherited from class oracle.ide.model.DeployableTextNode
EXT2
 
Fields inherited from class oracle.ide.model.Node
LOG_READONLY
 
Constructor Summary
JavaClassNode()
           
 
Method Summary
protected  java.io.Reader createReader(java.net.URL url)
          Fetch a Reader for reading the contents of this node from the given URL.
protected static java.lang.String emitFile(JavaFile javaFile)
          Given a JavaFile, emit a source stub for that JavaFile
 boolean isReadOnly()
          Returns true if the Node is read-only.
protected  void saveImpl()
          Subclasses should override this method to customize the save() behavior.
 
Methods inherited from class oracle.jdeveloper.model.JavaNode
getIcon, setIcon
 
Methods inherited from class oracle.ide.model.TextNode
acquireTextBuffer, acquireTextBufferOrThrow, addTextBufferListener, closeImpl, createOutputStreamWriter, getInputStream, getInputStream, getLoadEncoding, getReader, getSaveEncoding, getTextBufferDirectly, hasEmptyTextBuffer, isDirty, markDirty, markDirtyImpl, openImpl, readUnlock, releaseTextBuffer, removeTextBufferListener, reportOpenException, revertImpl, setDefaultLineTerminator, setLoadEncoding, setSaveEncoding, tryAcquireTextBuffer, upgradeUnlock, urlReadOnlyChanged, writeUnlock
 
Methods inherited from class oracle.ide.model.Node
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getChildren, getData, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampLoadedUnsafe, getToolTipText, getTransientProperties, getUnmodifiedTimestamp, getURL, isLoaded, isMigrating, isNew, isOpen, isReadLocked, isReadOrWriteLocked, isTrackedInNodeCache, isWriteLocked, lockCount, mayHaveChildren, nodeLock, notifyObservers, open, readLock, readLockCount, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, revert, runUnderReadLock, runUnderWriteLock, save, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, toString, tryRunUnderReadLock, unsetMigrating, upgradeLock, writeLock, writeLockCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXT

public static final java.lang.String EXT
See Also:
Constant Field Values
Constructor Detail

JavaClassNode

public JavaClassNode()
Method Detail

createReader

protected java.io.Reader createReader(java.net.URL url)
Description copied from class: TextNode
Fetch a Reader for reading the contents of this node from the given URL. Subclasses may override this if they have special requirements for creating the Reader.

Overrides:
createReader in class TextNode
Parameters:
url - the URL to fetch a Reader for
Returns:
a Reader for loading the contents of this node from storage

saveImpl

protected void saveImpl()
Description copied from class: Node
Subclasses should override this method to customize the save() behavior. Node.save() invokes this only if the node is dirty, under write lock. The Node implementation does nothing.

Overrides:
saveImpl in class TextNode

isReadOnly

public boolean isReadOnly()
Description copied from class: TextNode
Returns true if the Node is read-only.

TextNode overrides to force the underlying buffer to be read only.

Overrides:
isReadOnly in class TextNode
See Also:
Node.isReadOnly()

emitFile

protected static java.lang.String emitFile(JavaFile javaFile)
Given a JavaFile, emit a source stub for that JavaFile

Parameters:
javaFile - A JavaFile which cannot be null
Returns:
A source stub for the JavaFile

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

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