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_READONLYDEPLOYED_BY_DEFAULT_PROPERTYLIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTYCLASSPATH_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, toStringgetObjectStoreTarget, getURL, newObjectStoreaddNodeListener, 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, writeUnlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, getName, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePathgetClassPath, getDocPath, getSourcePath, isLocked, setDocPath, setLocked, setSourcePathgetAttributedLabel, getIcon, getLongLabel, getShortLabel, getToolTipText, toStringpublic 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
LibraryDataNodeObjectStore 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 LibraryDataNodejava.io.IOException - if an I/O error occurred while openingObjectStorepublic void markDirty(boolean dirty)
NodeNote that it can fire nodeDirtyStateChanged()
and UpdateMessage.ATTRIBUTE_CHANGED events
when node's Node.writeLock() is held!
protected void saveImpl()
throws java.io.IOException
LibraryDataNodeDocument interface method. This method uses
Object2Dom to marshal the underlying JavaBean into an XML
form.saveImpl in class LibraryDataNodejava.io.IOException - if an I/O error occurred while savingObject2Dompublic boolean equivalent(Library library)
Libraryequivalent in interface Libraryequivalent in class ExternalLibrarylibrary - the Library against which to test for equivalence.public void initFromLibrary(Library lib)
LibraryinitFromLibrary in interface LibraryinitFromLibrary in class ExternalLibrarylib - the Library from which to fetch property values.public java.net.URL getOrigin()
getOrigin in interface oracle.javatools.exports.library.ExportLibrarypublic java.lang.String getId()
throws TransientMarker
getId in interface oracle.javatools.exports.library.ExportLibraryTransientMarkerpublic void setId(java.lang.String newId)
public void setName(java.lang.String name)
setName in interface LibrarysetName in class ExternalLibrarypublic java.lang.String getDescription()
throws TransientMarker
getDescription in interface oracle.javatools.exports.library.ExportLibraryTransientMarkerpublic void setDescription(java.lang.String newDescription)
public java.lang.Boolean getDeployedByDefault()
throws AttributeMarker
getDeployedByDefault in interface JLibraryAttributeMarkerpublic void setDeployedByDefault(java.lang.Boolean newDeployed)
setDeployedByDefault in interface JLibrarypublic void setClassPath(URLPath newClassPath)
setClassPath in interface JPathssetClassPath in class ExternalLibrarypublic java.util.Collection<oracle.javatools.exports.library.ClassPathEntry> getSuppliedClassPath()
getSuppliedClassPath in interface oracle.javatools.exports.library.ExportLibrarypublic java.util.Collection<oracle.javatools.exports.library.ClassPathEntry> getResolvedClassPath()
getResolvedClassPath in interface oracle.javatools.exports.library.ExportLibrarypublic java.util.Map<java.lang.String,java.util.List<java.net.URL>> getExportSpecificationPaths()
getExportSpecificationPaths in interface oracle.javatools.exports.library.ExportLibrarypublic java.util.List<java.net.URL> getRemediationCommentsPaths()
getRemediationCommentsPaths in interface oracle.javatools.exports.library.ExportLibrarypublic 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.ExportLibrarypublic java.util.Collection<oracle.javatools.exports.library.LibraryDependency> getDependencies()
throws TransientMarker
getDependencies in interface oracle.javatools.exports.library.ExportLibraryTransientMarker@Deprecated public JLibraryDefinition getDefaultLibraryDefinition()
getDefaultLibraryDefinition in interface JLibrary@Deprecated public JLibraryDefinition getLibraryDefinition(VersionNumber jdkVer)
getLibraryDefinition in interface JLibraryprotected java.lang.String getExtension()
getExtension in class ExternalLibrary