public abstract class ExternalLibrary extends LibraryDataNode implements Library
LOG_READONLY
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTY
CLASSPATH_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, saveImpl
addNodeListener, 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, writeUnlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttributedLabel, getLongLabel, getToolTipText
public ExternalLibrary()
public ExternalLibrary(java.net.URL url)
protected abstract java.lang.String getExtension()
@Deprecated public URLPath getDefaultClassPath() throws TransientMarker
getDefaultClassPath
in interface Library
TransientMarker
@Deprecated public void setDefaultClassPath(URLPath clsPath)
setDefaultClassPath
in interface Library
@Deprecated public URLPath getDefaultSourcePath() throws TransientMarker
getDefaultSourcePath
in interface Library
TransientMarker
@Deprecated public void setDefaultSourcePath(URLPath srcPath)
setDefaultSourcePath
in interface Library
@Deprecated public URLPath getDefaultDocPath() throws TransientMarker
getDefaultDocPath
in interface Library
TransientMarker
@Deprecated public void setDefaultDocPath(URLPath docPath)
setDefaultDocPath
in interface Library
public URLPath getClassPath()
JPaths
getClassPath
in interface JPaths
public void setClassPath(URLPath path)
JPaths
setClassPath
in interface JPaths
path
- The pathpublic URLPath getSourcePath()
JPaths
getSourcePath
in interface JPaths
public void setSourcePath(URLPath path)
JPaths
setSourcePath
in interface JPaths
path
- The pathpublic URLPath getDocPath()
JPaths
getDocPath
in interface JPaths
public void setDocPath(URLPath path)
JPaths
setDocPath
in interface JPaths
path
- The pathpublic boolean isLocked()
JPaths
public void setLocked(boolean locked)
JPaths
public java.lang.String getName()
public java.lang.Object getID()
public boolean equivalent(Library lib)
Library
equivalent
in interface Library
lib
- the Library against which to test for equivalence.public void initFromLibrary(Library lib)
Library
initFromLibrary
in interface Library
lib
- the Library from which to fetch property values.public java.lang.String getShortLabel()
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>".getShortLabel
in interface Displayable
getShortLabel
in class Node
Displayable
that can be shown to the user.public javax.swing.Icon getIcon()
Node
Displayable
interface method. The Node class returns
a generic icon.getIcon
in interface Displayable
getIcon
in class Node
Icon
to be displayed for the
Displayable
.public java.lang.String toString()
Displayable
toString
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 Displayable
toString
in class Node
Object.toString()
,
Displayable.getShortLabel()
protected void fireChangeEvent(java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)