public abstract class ExternalLibrary extends LibraryDataNode implements Library
LOG_READONLYLIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTYCLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY| Constructor and Description |
|---|
ExternalLibrary()
Default constructor.
|
ExternalLibrary(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
fireChangeEvent(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue) |
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.
|
getObjectStoreTarget, getURL, newObjectStore, openImpl, saveImpladdNodeListener, 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, isLockHeld, isMigrating, isNew, isOpen, isReadLocked, isReadLockHeld, isReadOnly, isReadOrWriteLocked, isTrackedInNodeCache, isTrackingThreadNodeUsage, isWriteLocked, isWriteLockHeld, 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, tryRunUnderWriteLock, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeLockInterruptibly, writeUnlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLongLabel, getToolTipTextpublic ExternalLibrary()
public ExternalLibrary(java.net.URL url)
protected abstract java.lang.String getExtension()
@Deprecated public URLPath getDefaultClassPath() throws TransientMarker
getDefaultClassPath in interface LibraryTransientMarker@Deprecated public void setDefaultClassPath(URLPath clsPath)
setDefaultClassPath in interface Library@Deprecated public URLPath getDefaultSourcePath() throws TransientMarker
getDefaultSourcePath in interface LibraryTransientMarker@Deprecated public void setDefaultSourcePath(URLPath srcPath)
setDefaultSourcePath in interface Library@Deprecated public URLPath getDefaultDocPath() throws TransientMarker
getDefaultDocPath in interface LibraryTransientMarker@Deprecated public void setDefaultDocPath(URLPath docPath)
setDefaultDocPath in interface Librarypublic URLPath getClassPath()
getClassPath in interface JPathspublic void setClassPath(URLPath path)
setClassPath in interface JPathspublic URLPath getSourcePath()
getSourcePath in interface JPathspublic void setSourcePath(URLPath path)
setSourcePath in interface JPathspublic URLPath getDocPath()
getDocPath in interface JPathspublic void setDocPath(URLPath path)
setDocPath in interface JPathspublic java.lang.String getName()
public java.lang.Object getID()
public boolean equivalent(Library lib)
Libraryequivalent in interface Librarylib - the Library against which to test for equivalence.public void initFromLibrary(Library lib)
LibraryinitFromLibrary in interface Librarylib - the Library from which to fetch property values.public java.lang.String getShortLabel()
NodeDisplayable 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>".getShortLabel in interface DisplayablegetShortLabel in class NodeDisplayable
that can be shown to the user.public javax.swing.Icon getIcon()
NodeDisplayable interface method. The Node class returns
a generic icon.getIcon in interface DisplayablegetIcon in class NodeIcon to be displayed for the
Displayable.public java.lang.String toString()
DisplayabletoString method in java.lang.Object.
Implementors of the Displayable interface should
override this as appropriate. The default implementation is
the same as getShortLabel
toString in interface DisplayabletoString in class NodeObject.toString(),
Displayable.getShortLabel()protected void fireChangeEvent(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)