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()
Get the path where classes can be found.
|
URLPath |
getDefaultClassPath()
Deprecated.
use getClassPath
|
URLPath |
getDefaultDocPath()
Deprecated.
use getDocPath
|
URLPath |
getDefaultSourcePath()
Deprecated.
use getSourcePath
|
URLPath |
getDocPath()
Get the path where documentation can be found.
|
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()
Get the path where sources can be found.
|
void |
initFromLibrary(Library lib)
Initialize all public properties, other than name, from the Library
provided.
|
boolean |
isLocked()
Determine if paths are locked or not.
|
void |
setClassPath(URLPath path)
Set the path where classes can be found.
|
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)
Set the path where documentation can be found.
|
void |
setLocked(boolean locked)
Update the lock of the paths.
|
void |
setName(java.lang.String name) |
void |
setSourcePath(URLPath path)
Set the path where sources can be found.
|
java.lang.String |
toString()
Returns the Short Label displayed to a user.
|
getObjectStoreTarget, getURL, newObjectStore, openImpl, saveImpladdNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, addWeakNodeListener, attach, beginThreadNodeUsageCycle, bypassNodeCreationsDuringDelete, 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, removeWeakNodeListener, 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, waitgetAttributedLabel, getLongLabel, 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()
JPathsgetClassPath in interface JPathspublic void setClassPath(URLPath path)
JPathssetClassPath in interface JPathspath - The pathpublic URLPath getSourcePath()
JPathsgetSourcePath in interface JPathspublic void setSourcePath(URLPath path)
JPathssetSourcePath in interface JPathspath - The pathpublic URLPath getDocPath()
JPathsgetDocPath in interface JPathspublic void setDocPath(URLPath path)
JPathssetDocPath in interface JPathspath - The pathpublic boolean isLocked()
JPathspublic void setLocked(boolean locked)
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)