public class JLibraryNode extends ExternalLibrary implements JLibrary, oracle.javatools.exports.library.ExportLibrary
An ugly thing I note is that URLPath is inherently mutable, and so the paths are readily dirtied without the node being aware of it. The node could add itself to the paths as owner so that its markDirty will be called when one of the paths gets dirtied, but that wasn't done, so I'm a little hesitant to start doing that without until I've dived further into this.
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() |
JLibraryNode(oracle.javatools.exports.library.FileExportLibrary library) |
JLibraryNode(java.net.URL url) |
JLibraryNode(java.net.URL url,
boolean exportFormat) |
Modifier and Type | Method and Description |
---|---|
boolean |
equivalent(Library library)
Determine whether the given Library is equivalent to this one with respect
to the values of its public properties other than name.
|
JLibraryDefinition |
getDefaultLibraryDefinition()
Deprecated.
|
java.util.Collection<oracle.javatools.exports.library.LibraryDependency> |
getDependencies() |
java.lang.Boolean |
getDeployedByDefault() |
java.lang.String |
getDescription() |
java.util.Map<java.lang.String,java.util.List<java.net.URL>> |
getExportSpecificationPaths() |
protected java.lang.String |
getExtension() |
java.lang.String |
getId() |
JLibraryDefinition |
getLibraryDefinition(VersionNumber jdkVer)
Deprecated.
|
java.net.URL |
getOrigin() |
java.util.List<java.net.URL> |
getRemediationCommentsPaths() |
java.util.Collection<oracle.javatools.exports.library.ClassPathEntry> |
getResolvedClassPath() |
java.util.Map<java.lang.String,java.lang.String> |
getResolvedRemediationComments() |
java.util.Collection<oracle.javatools.exports.library.ClassPathEntry> |
getSuppliedClassPath() |
void |
initFromLibrary(Library lib)
Initialize all public properties, other than name, from the Library
provided.
|
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state.
|
protected void |
openImpl()
This method uses
ObjectStore to unmarshal the file into a
JavaBean instance. |
protected void |
saveImpl()
Document interface method. |
void |
setClassPath(URLPath newClassPath)
Override to clear export specifications and dependencies because this
resetting the class path wipes out any references to them.
|
void |
setDeployedByDefault(java.lang.Boolean newDeployed) |
void |
setDescription(java.lang.String newDescription) |
void |
setId(java.lang.String newId) |
void |
setName(java.lang.String name)
Override to synchronize the id if it is synthesized.
|
void |
setRemediationCommentsPaths(java.util.List<java.net.URL> newRemediationCommentPaths) |
fireChangeEvent, getClassPath, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getDocPath, getIcon, getID, getName, getShortLabel, getSourcePath, isLocked, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setDocPath, setLocked, 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, 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
getClassPath, getDocPath, getSourcePath, isLocked, 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)
public JLibraryNode(java.net.URL url, boolean exportFormat)
public JLibraryNode(oracle.javatools.exports.library.FileExportLibrary library)
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
public void markDirty(boolean dirty)
Node
Note that it can fire nodeDirtyStateChanged()
and UpdateMessage.ATTRIBUTE_CHANGED
events
when node's Node.writeLock()
is held!
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 library)
Library
equivalent
in interface Library
equivalent
in class ExternalLibrary
library
- 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.net.URL getOrigin()
getOrigin
in interface oracle.javatools.exports.library.ExportLibrary
public java.lang.String getId() throws TransientMarker
getId
in interface oracle.javatools.exports.library.ExportLibrary
TransientMarker
public void setId(java.lang.String newId)
public void setName(java.lang.String name)
setName
in interface Library
setName
in class ExternalLibrary
public java.lang.String getDescription() throws TransientMarker
getDescription
in interface oracle.javatools.exports.library.ExportLibrary
TransientMarker
public void setDescription(java.lang.String newDescription)
public java.lang.Boolean getDeployedByDefault() throws AttributeMarker
getDeployedByDefault
in interface JLibrary
AttributeMarker
public void setDeployedByDefault(java.lang.Boolean newDeployed)
setDeployedByDefault
in interface JLibrary
public void setClassPath(URLPath newClassPath)
setClassPath
in interface JPaths
setClassPath
in class ExternalLibrary
public java.util.Collection<oracle.javatools.exports.library.ClassPathEntry> getSuppliedClassPath()
getSuppliedClassPath
in interface oracle.javatools.exports.library.ExportLibrary
public java.util.Collection<oracle.javatools.exports.library.ClassPathEntry> getResolvedClassPath()
getResolvedClassPath
in interface oracle.javatools.exports.library.ExportLibrary
public java.util.Map<java.lang.String,java.util.List<java.net.URL>> getExportSpecificationPaths()
getExportSpecificationPaths
in interface oracle.javatools.exports.library.ExportLibrary
public java.util.List<java.net.URL> getRemediationCommentsPaths()
getRemediationCommentsPaths
in interface oracle.javatools.exports.library.ExportLibrary
public void setRemediationCommentsPaths(java.util.List<java.net.URL> newRemediationCommentPaths)
public java.util.Map<java.lang.String,java.lang.String> getResolvedRemediationComments()
getResolvedRemediationComments
in interface oracle.javatools.exports.library.ExportLibrary
public java.util.Collection<oracle.javatools.exports.library.LibraryDependency> getDependencies() throws TransientMarker
getDependencies
in interface oracle.javatools.exports.library.ExportLibrary
TransientMarker
@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