public class JLibraryNode extends ExternalLibrary implements JLibrary, ExportAwareLibrary
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE_URI |
static java.lang.String |
ROOT_TAG |
LOG_READONLY
DEPLOYED_BY_DEFAULT_PROPERTY
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTY
CLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY
Constructor and Description |
---|
JLibraryNode()
Constructor.
|
JLibraryNode(java.net.URL url)
Constructor.
|
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.
|
java.util.Map<URLKey,oracle.javatools.exports.ExportModel<?>> |
getAnnotatedClassPath()
Gets a map from classpath entry to the corresponding export specification.
|
JLibraryDefinition |
getDefaultLibraryDefinition()
Deprecated.
|
java.util.List<oracle.javatools.exports.ExportLibrary.Dependency> |
getDependencies()
Gets the list of libraries that this library depends on and for each
library, whether its API should be reexported.
|
java.lang.Boolean |
getDeployedByDefault() |
java.lang.String |
getDescription()
Gets a human readable description of this library.
|
protected java.lang.String |
getExtension() |
java.lang.String |
getId()
Gets the globally unique id of this library.
|
JLibraryDefinition |
getLibraryDefinition(VersionNumber jdkVer)
Deprecated.
|
void |
initFromLibrary(Library lib)
Initialize all public properties, other than name, from the Library
provided.
|
protected void |
openImpl()
This method uses
ObjectStore to unmarshal the file into a
JavaBean instance. |
protected void |
saveImpl()
Document interface method. |
void |
setAnnotatedClassPath(java.util.Map<URLKey,oracle.javatools.exports.ExportModel<?>> newAnnotatedClassPath) |
void |
setDependencies(java.util.List<oracle.javatools.exports.ExportLibrary.Dependency> newDependencies) |
void |
setDeployedByDefault(java.lang.Boolean deploy) |
void |
setDescription(java.lang.String newDescription) |
void |
setId(java.lang.String newId) |
fireChangeEvent, getClassPath, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getDocPath, getIcon, getID, getName, getShortLabel, getSourcePath, isLocked, setClassPath, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setDocPath, setLocked, setName, setSourcePath, toString
getObjectStoreTarget, getURL, newObjectStore
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, addWeakNodeListener, 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, 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
getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, getName, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setName
getClassPath, getDocPath, getSourcePath, isLocked, setClassPath, setDocPath, setLocked, setSourcePath
getAttributedLabel, getIcon, getLongLabel, getShortLabel, getToolTipText, toString
public static final java.lang.String NAMESPACE_URI
public static final java.lang.String ROOT_TAG
public JLibraryNode()
public JLibraryNode(java.net.URL url)
url
- URL in which to store library information.protected void openImpl() throws java.io.IOException
LibraryDataNode
ObjectStore
to unmarshal the file into a
JavaBean instance. In addition, subclasses can call this method
and indicate that the method should not send OBJECT_OPENED notification
to observers. This method sends OBJECT_OPENED notification in an
invoke later event.openImpl
in class LibraryDataNode
java.io.IOException
- if an I/O error occurred while openingObjectStore
protected void saveImpl() throws java.io.IOException
LibraryDataNode
Document
interface method. This method uses
Object2Dom
to marshal the underlying JavaBean into an XML
form.saveImpl
in class LibraryDataNode
java.io.IOException
- if an I/O error occurred while savingObject2Dom
public boolean equivalent(Library lib)
Library
equivalent
in interface Library
equivalent
in class ExternalLibrary
lib
- the Library against which to test for equivalence.public void initFromLibrary(Library lib)
Library
initFromLibrary
in interface Library
initFromLibrary
in class ExternalLibrary
lib
- the Library from which to fetch property values.public java.lang.String getId() throws TransientMarker
ExportAwareLibrary
getId
in interface ExportAwareLibrary
TransientMarker
public void setId(java.lang.String newId)
public java.lang.String getDescription() throws TransientMarker
ExportAwareLibrary
getDescription
in interface ExportAwareLibrary
TransientMarker
public void setDescription(java.lang.String newDescription)
public java.util.List<oracle.javatools.exports.ExportLibrary.Dependency> getDependencies() throws TransientMarker
ExportAwareLibrary
getDependencies
in interface ExportAwareLibrary
TransientMarker
public void setDependencies(java.util.List<oracle.javatools.exports.ExportLibrary.Dependency> newDependencies)
public java.util.Map<URLKey,oracle.javatools.exports.ExportModel<?>> getAnnotatedClassPath() throws TransientMarker
ExportAwareLibrary
getAnnotatedClassPath
in interface ExportAwareLibrary
TransientMarker
public void setAnnotatedClassPath(java.util.Map<URLKey,oracle.javatools.exports.ExportModel<?>> newAnnotatedClassPath)
public java.lang.Boolean getDeployedByDefault() throws AttributeMarker
getDeployedByDefault
in interface JLibrary
AttributeMarker
public void setDeployedByDefault(java.lang.Boolean deploy)
setDeployedByDefault
in interface JLibrary
@Deprecated public JLibraryDefinition getDefaultLibraryDefinition()
getDefaultLibraryDefinition
in interface JLibrary
@Deprecated public JLibraryDefinition getLibraryDefinition(VersionNumber jdkVer)
getLibraryDefinition
in interface JLibrary
protected java.lang.String getExtension()
getExtension
in class ExternalLibrary