Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.jdeveloper.library
Class ExternalLibrary

java.lang.Object
  extended by oracle.ide.model.Node
      extended by oracle.jdeveloper.library.LibraryDataNode
          extended by oracle.jdeveloper.library.ExternalLibrary

All Implemented Interfaces:
Displayable, Element, LazyLoadable, Locatable, Subject, Dirtyable, JPaths, Library
Direct Known Subclasses:
JDKNode, JLibraryNode

public abstract class ExternalLibrary
extends LibraryDataNode
implements Library

Field Summary

 

Fields inherited from class oracle.ide.model.Node
LOG_READONLY

 

Fields inherited from interface oracle.jdeveloper.library.Library
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTY

 

Fields inherited from interface oracle.jdeveloper.library.JPaths
CLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY

 

Constructor Summary
ExternalLibrary()
          Default constructor.
ExternalLibrary(java.net.URL url)
           

 

Method Summary
 boolean equivalent(Library lib)
          Determine whether the given Library is equivalent to this one with respect to the values of its public properties other than name.
 URLPath getClassPath()
           
 URLPath getDefaultClassPath()
          Deprecated. use getClassPath
 URLPath getDefaultDocPath()
          Deprecated. use getDocPath
 URLPath getDefaultSourcePath()
          Deprecated. use getSourcePath
 URLPath getDocPath()
           
protected abstract  java.lang.String getExtension()
           
 javax.swing.Icon getIcon()
          Displayable interface method.
 java.lang.Object getID()
           
 java.lang.String getName()
           
 java.lang.String getShortLabel()
          Displayable interface method.
 URLPath getSourcePath()
           
 void initFromLibrary(Library lib)
          Initialize all public properties, other than name, from the Library provided.
 boolean isLocked()
           
 void setClassPath(URLPath path)
           
 void setDefaultClassPath(URLPath clsPath)
          Deprecated. use setClassPath
 void setDefaultDocPath(URLPath docPath)
          Deprecated. use setDocPath
 void setDefaultSourcePath(URLPath srcPath)
          Deprecated. use setSourcePath
 void setDocPath(URLPath path)
           
 void setLocked(boolean locked)
           
 void setName(java.lang.String name)
           
 void setSourcePath(URLPath path)
           
 java.lang.String toString()
          Returns the Short Label displayed to a user.

 

Methods inherited from class oracle.jdeveloper.library.LibraryDataNode
getObjectStoreTarget, getURL, newObjectStore, openImpl, saveImpl

 

Methods inherited from class oracle.ide.model.Node
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, closeImpl, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getChildren, getData, getInputStream, getLongLabel, getSubject, getTimestamp, getTimestampLoadedUnsafe, getToolTipText, getTransientProperties, getUnmodifiedTimestamp, isDirty, isLoaded, isMigrating, isNew, isOpen, isReadLocked, isReadOnly, isReadOrWriteLocked, isTrackedInNodeCache, isWriteLocked, lockCount, markDirty, markDirtyImpl, mayHaveChildren, nodeLock, notifyObservers, open, readLock, readLockCount, readLockInterruptibly, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, reportOpenException, revert, revertImpl, runUnderReadLock, runUnderWriteLock, save, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, tryRunUnderReadLock, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeLockInterruptibly, writeUnlock

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface oracle.ide.model.Displayable
getLongLabel, getToolTipText

 

Constructor Detail

ExternalLibrary

public ExternalLibrary()
Default constructor. Required for JavaBean status.

ExternalLibrary

public ExternalLibrary(java.net.URL url)

Method Detail

getExtension

protected abstract java.lang.String getExtension()

getDefaultClassPath

public URLPath getDefaultClassPath()
                            throws TransientMarker
Deprecated. use getClassPath
Specified by:
getDefaultClassPath in interface Library
Throws:
TransientMarker

setDefaultClassPath

public void setDefaultClassPath(URLPath clsPath)
Deprecated. use setClassPath
Specified by:
setDefaultClassPath in interface Library

getDefaultSourcePath

public URLPath getDefaultSourcePath()
                             throws TransientMarker
Deprecated. use getSourcePath
Specified by:
getDefaultSourcePath in interface Library
Throws:
TransientMarker

setDefaultSourcePath

public void setDefaultSourcePath(URLPath srcPath)
Deprecated. use setSourcePath
Specified by:
setDefaultSourcePath in interface Library

getDefaultDocPath

public URLPath getDefaultDocPath()
                          throws TransientMarker
Deprecated. use getDocPath
Specified by:
getDefaultDocPath in interface Library
Throws:
TransientMarker

setDefaultDocPath

public void setDefaultDocPath(URLPath docPath)
Deprecated. use setDocPath
Specified by:
setDefaultDocPath in interface Library

getClassPath

public URLPath getClassPath()
Specified by:
getClassPath in interface JPaths
Returns:
May be null.

setClassPath

public void setClassPath(URLPath path)
Specified by:
setClassPath in interface JPaths

getSourcePath

public URLPath getSourcePath()
Specified by:
getSourcePath in interface JPaths
Returns:
May be null.

setSourcePath

public void setSourcePath(URLPath path)
Specified by:
setSourcePath in interface JPaths

getDocPath

public URLPath getDocPath()
Specified by:
getDocPath in interface JPaths
Returns:
May be null.

setDocPath

public void setDocPath(URLPath path)
Specified by:
setDocPath in interface JPaths

isLocked

public boolean isLocked()
Specified by:
isLocked in interface JPaths

setLocked

public void setLocked(boolean locked)
Specified by:
setLocked in interface JPaths

getName

public java.lang.String getName()
Specified by:
getName in interface Library
Returns:
the Library name, or null

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Library

getID

public java.lang.Object getID()
Specified by:
getID in interface Library
Returns:
the Library id as a String or null

equivalent

public boolean equivalent(Library lib)
Description copied from interface: Library
Determine whether the given Library is equivalent to this one with respect to the values of its public properties other than name.
Specified by:
equivalent in interface Library
Parameters:
lib - the Library against which to test for equivalence.
Returns:
true if all public properties are equal.

initFromLibrary

public void initFromLibrary(Library lib)
Description copied from interface: Library
Initialize all public properties, other than name, from the Library provided.
Specified by:
initFromLibrary in interface Library

getShortLabel

public java.lang.String getShortLabel()
Description copied from class: Node
Displayable interface method. The Node class returns the file name part of the currently set URL. If the currently set URL is null, then this method returns "<null>".
Specified by:
getShortLabel in interface Displayable
Overrides:
getShortLabel in class Node
Returns:
a short descriptive label of the Displayable that can be shown to the user.

getIcon

public javax.swing.Icon getIcon()
Description copied from class: Node
Displayable interface method. The Node class returns a generic icon.
Specified by:
getIcon in interface Displayable
Overrides:
getIcon in class Node
Returns:
the Icon to be displayed for the Displayable.

toString

public java.lang.String toString()
Description copied from interface: Displayable
Returns the Short Label displayed to a user. This overrides the toString method in java.lang.Object.

Implementors of the Displayable interface should override this as appropriate. The default implementation is the same as getShortLabel

Specified by:
toString in interface Displayable
Overrides:
toString in class Node
See Also:
Object.toString(), Displayable.getShortLabel()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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