Extension SDK 10.1.3.36.73

oracle.jdeveloper.model
Class JavaClassNode

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

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
 
Constructor Summary
JavaClassNode()
           
 
Method Summary
protected  void closeImpl()
          Subclasses should override this method to customize the close() behavior.
 java.io.InputStream getInputStream()
          NOTE: Use of TextNode.getInputStream() is highly discouraged because of the NLS issues raised by using byte streams for text and the associated poor performance caused by char-to-byte conversion.
protected  TextBuffer getTextBufferDirectly()
          Directly gets the TextBuffer.
protected  void openImpl()
          Subclasses should override this method to customize the open() behavior.
protected  void revertImpl()
          Subclasses should override this method to customize the revert() behavior.
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, createOutputStreamWriter, createReader, dataExpired, getInputStream, getLoadEncoding, getReader, getSaveEncoding, hasEmptyTextBuffer, isDirty, isReadOnly, markDirty, releaseTextBuffer, removeTextBufferListener, reportOpenException, setDefaultLineTerminator, setLoadEncoding, setReadOnly, setSaveEncoding, updateReadOnlyFlag
 
Methods inherited from class oracle.ide.model.Node
_getReadWriteLockInternal, addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, close, createSubject, delete, deleteImpl, detach, ensureOpen, equalsImpl, getAttributes, getChildren, getData, getLongLabel, getShortLabel, getSubject, getTimestamp, getToolTipText, getURL, isNew, isOpen, isTrackedInNodeCache, mayHaveChildren, notifyObservers, open, postCloseImpl, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, revert, runWhileSynchronized, save, setOpen, setTimestampDirectly, setURL, toString
 
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

openImpl

protected void openImpl()
                 throws java.io.IOException
Description copied from class: Node
Subclasses should override this method to customize the open() behavior.

Overrides:
openImpl in class TextNode
Throws:
java.io.IOException

closeImpl

protected void closeImpl()
                  throws java.io.IOException
Description copied from class: Node
Subclasses should override this method to customize the close() behavior.

Overrides:
closeImpl in class TextNode
Throws:
java.io.IOException

saveImpl

protected void saveImpl()
                 throws java.io.IOException
Description copied from class: Node
Subclasses should override this method to customize the save() behavior.

Overrides:
saveImpl in class TextNode
Throws:
java.io.IOException

revertImpl

protected void revertImpl()
                   throws java.io.IOException
Description copied from class: Node
Subclasses should override this method to customize the revert() behavior.

Overrides:
revertImpl in class TextNode
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from class: TextNode
NOTE: Use of TextNode.getInputStream() is highly discouraged because of the NLS issues raised by using byte streams for text and the associated poor performance caused by char-to-byte conversion. Use TextNode.getReader() instead whenever possible.

Returns an InputStream that's backed by the current TextBuffer.

Overrides:
getInputStream in class TextNode
Throws:
java.io.IOException

getTextBufferDirectly

protected TextBuffer getTextBufferDirectly()
Description copied from class: TextNode
Directly gets the TextBuffer. This method is primarily intended for subclass customization of TextNode.

Overrides:
getTextBufferDirectly in class TextNode

Extension SDK 10.1.3.36.73

 

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