Extension SDK

oracle.jdeveloper.model
Class JspSourceNode

java.lang.Object
  |
  +--oracle.ide.model.DefaultDisplayable
        |
        +--oracle.ide.model.DefaultElement
              |
              +--oracle.ide.model.DefaultDocument
                    |
                    +--oracle.ide.model.DefaultNode
                          |
                          +--oracle.ide.model.TextNode
                                |
                                +--oracle.ide.model.DeployableTextNode
                                      |
                                      +--oracle.jdevimpl.webapp.html.HtmlSourceNode
                                            |
                                            +--oracle.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 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

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
Overrides:
getIcon in class oracle.jdevimpl.webapp.html.HtmlSourceNode
Following copied from interface: oracle.ide.model.Displayable
Returns:
the Icon to be displayed for the 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
Following copied from interface: oracle.jdeveloper.model.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
Following copied from interface: oracle.jdeveloper.model.PackagedSource
Parameters:
project - the project which contains the source file.
Returns:
the source file name for the source file.

Extension SDK