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() |
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, saveImpl
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, 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, writeUnlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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()
getClassPath
in interface JPaths
public void setClassPath(URLPath path)
setClassPath
in interface JPaths
public URLPath getSourcePath()
getSourcePath
in interface JPaths
public void setSourcePath(URLPath path)
setSourcePath
in interface JPaths
public URLPath getDocPath()
getDocPath
in interface JPaths
public void setDocPath(URLPath path)
setDocPath
in interface 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)