Extension SDK

oracle.jdeveloper.model
Class JspSourceNode

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.TextNode
                      extended byoracle.ide.model.DeployableTextNode
                          extended byoracle.jdevimpl.webapp.html.HtmlSourceNode
                              extended byoracle.jdeveloper.model.JspSourceNode
All Implemented Interfaces:
Browseable, Category, Data, Dirtyable, Displayable, Document, Element, LazyLoadable, Locatable, Node, PackagedSource, Subject, TextDocument

public class JspSourceNode
extends oracle.jdevimpl.webapp.html.HtmlSourceNode
implements Browseable, PackagedSource

The JspSourceNode interface represents a Jsp source file in the JDeveloper browser.


Field Summary
static java.lang.String defaultName
           
static java.lang.String EXT
           
 
Fields inherited from class oracle.jdevimpl.webapp.html.HtmlSourceNode
ALTERNATE_EXT
 
Fields inherited from class oracle.ide.model.DeployableTextNode
EXT2
 
Fields inherited from interface oracle.ide.addin.Subject
OBJECT_MODIFIED
 
Fields inherited from interface oracle.ide.model.Category
UNDEFINED
 
Constructor Summary
JspSourceNode()
           
 
Method Summary
 javax.swing.Icon getIcon()
          Returns the Icon for this node instance
 java.lang.String getPackage(JProject project)
          Returns the package for the source file.
 java.lang.String getSourceFile()
          Returns the file name for the source file.
 
Methods inherited from class oracle.jdevimpl.webapp.html.HtmlSourceNode
getCategory, getEncoding, getInputStream, reopen, save, setEncoding
 
Methods inherited from class oracle.ide.model.TextNode
acquireTextBuffer, close, getLoadEncoding, getReader, getSaveEncoding, getTextBufferDirectly, hasEmptyTextBuffer, isDirty, isReadOnly, markDirty, open, releaseTextBuffer, setTextBufferDirectly, updateReadOnlyFlag
 
Methods inherited from class oracle.ide.model.DefaultNode
equalsImpl, setURL
 
Methods inherited from class oracle.ide.model.DefaultDocument
attach, copyToImpl, createSubject, detach, ensureOpen, equalsImpl, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampDirectly, getToolTipText, getURL, isNew, isOpen, notifyObservers, refreshTimestamp, setOpen, setTimestampDirectly
 
Methods inherited from class oracle.ide.model.DefaultElement
getAttributes, getChildren, getData, mayHaveChildren
 
Methods inherited from class oracle.ide.model.DefaultDisplayable
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
getTimestamp, isNew
 
Methods inherited from interface oracle.ide.model.Locatable
getURL, setURL
 
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
getLongLabel, getShortLabel, getToolTipText, toString
 
Methods inherited from interface oracle.ide.addin.Subject
attach, detach, notifyObservers
 
Methods inherited from interface oracle.ide.model.LazyLoadable
isOpen
 

Field Detail

EXT

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

defaultName

public static final java.lang.String defaultName
Constructor Detail

JspSourceNode

public JspSourceNode()
Method Detail

getIcon

public javax.swing.Icon getIcon()
Returns the Icon for this node instance

Specified by:
getIcon in interface Displayable

getPackage

public java.lang.String getPackage(JProject project)
Description copied from interface: PackagedSource
Returns the package for the source file.

Note that the package returned here may begin with a '*' which means that the exact package is not known.

Specified by:
getPackage in interface PackagedSource
Parameters:
project - the project which contains the source file
Returns:
the package for the source file.

getSourceFile

public java.lang.String getSourceFile()
Description copied from interface: PackagedSource
Returns the file name for the source file.

Only the name of the source file is given by the source file attribute it never represents the name of a directory containing the file or an absolute path name for the file. For instance the source file attribute may contain file name foo.java but not the UNIX path name /home/jdevwork/workspace1/project1/package1/foo.java.

Specified by:
getSourceFile in interface PackagedSource
Returns:
the source file name for the source file.

Extension SDK

 

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