public final class ManifestLibrary extends java.lang.Object implements JLibrary, oracle.javatools.exports.library.ExportLibrary
DEPLOYED_BY_DEFAULT_PROPERTY
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTY
CLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY
Constructor and Description |
---|
ManifestLibrary(oracle.javatools.exports.library.FileExportLibrary library) |
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.
|
URLPath |
getClassPath() |
URLPath |
getDefaultClassPath()
Deprecated.
use getClassPath()
|
URLPath |
getDefaultDocPath()
Deprecated.
use getDocPath()
|
JLibraryDefinition |
getDefaultLibraryDefinition()
Deprecated.
JDK based versions desupported. Use JLibrary directly.
|
URLPath |
getDefaultSourcePath()
Deprecated.
use getSourcePath()
|
java.util.Collection<oracle.javatools.exports.library.LibraryDependency> |
getDependencies() |
java.lang.Boolean |
getDeployedByDefault() |
java.lang.String |
getDescription() |
URLPath |
getDocPath() |
java.util.Map<java.lang.String,java.util.List<java.net.URL>> |
getExportSpecificationPaths() |
javax.swing.Icon |
getIcon()
Returns an
Icon that can be shown in association with this
Displayable . |
java.lang.String |
getId() |
java.lang.Object |
getID() |
JLibraryDefinition |
getLibraryDefinition(VersionNumber jdkVer)
Deprecated.
JDK based versions desupported. Use JLibrary directly.
|
java.lang.String |
getLongLabel()
Returns a long label that can be displayed to the user.
|
java.lang.String |
getName() |
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.lang.String |
getShortLabel()
Returns a short label that can be displayed to the user.
|
URLPath |
getSourcePath() |
java.util.Collection<oracle.javatools.exports.library.ClassPathEntry> |
getSuppliedClassPath() |
java.lang.String |
getToolTipText()
Returns the tool tip text to show when the mouse pointer pauses
over a UI component that represents this
Displayable . |
void |
initFromLibrary(Library library)
Initialize all public properties, other than name, from the Library
provided.
|
boolean |
isLocked() |
void |
setClassPath(URLPath clsPath) |
void |
setDefaultClassPath(URLPath clsPath)
Deprecated.
|
void |
setDefaultDocPath(URLPath docPath)
Deprecated.
|
void |
setDefaultSourcePath(URLPath srcPath)
Deprecated.
|
void |
setDeployedByDefault(java.lang.Boolean deployed) |
void |
setDocPath(URLPath docPath) |
void |
setLocked(boolean isLocked) |
void |
setName(java.lang.String name) |
void |
setSourcePath(URLPath srcPath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributedLabel, toString
public ManifestLibrary(oracle.javatools.exports.library.FileExportLibrary library)
public java.net.URL getOrigin()
getOrigin
in interface oracle.javatools.exports.library.ExportLibrary
public java.lang.String getId()
getId
in interface oracle.javatools.exports.library.ExportLibrary
public java.lang.String getName()
public java.lang.String getDescription()
getDescription
in interface oracle.javatools.exports.library.ExportLibrary
public java.lang.Boolean getDeployedByDefault() throws AttributeMarker
getDeployedByDefault
in interface JLibrary
AttributeMarker
public URLPath getClassPath()
getClassPath
in interface JPaths
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 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()
getDependencies
in interface oracle.javatools.exports.library.ExportLibrary
public URLPath getSourcePath()
getSourcePath
in interface JPaths
public URLPath getDocPath()
getDocPath
in interface JPaths
public java.lang.String getShortLabel()
Displayable
String
is considered
translatable and should therefore be placed in an appropriate
resource file. When possible, the returned label should be
reasonably short enough to show in the navigator or explorer
windows but long enough to clearly identify and distinguish the
Displayable
.getShortLabel
in interface Displayable
Displayable
that can be shown to the user.public java.lang.String getLongLabel()
Displayable
String
is considered translatable
and should therefore be placed in an appropriate resource file.
The long label differs from the short label essentially on length.
Usually the long label will only be shown on-demand and in places
where horizontal space is more available. Examples are the status
bar and tooltips.getLongLabel
in interface Displayable
Displayable
that
can be shown to the user.public java.lang.String getToolTipText()
Displayable
Displayable
.
In many cases it may be appropriate for this method to return the
same value as Displayable.getLongLabel()
.getToolTipText
in interface Displayable
Displayable
.public javax.swing.Icon getIcon()
Displayable
Icon
that can be shown in association with this
Displayable
. Typically the icon will be used in a
tree control or list control. Therefore the icon must fit
naturally within the space normally given to items within those
controls. Such icons are usually 16x16 in size or, if there is a
one-pixel transparent padding around the edge, 18x18 in size. It
is strongly recommended that icons returned by this method be
either 16x16 or 18x18 in size. If null
is returned,
the control may show a default icon, or it may show no icon,
whichever is appropriate.getIcon
in interface Displayable
Icon
to be displayed for the
Displayable
.public java.lang.Object getID()
@Deprecated public URLPath getDefaultClassPath()
getDefaultClassPath
in interface Library
@Deprecated public URLPath getDefaultSourcePath()
getDefaultSourcePath
in interface Library
@Deprecated public URLPath getDefaultDocPath()
getDefaultDocPath
in interface Library
@Deprecated public JLibraryDefinition getDefaultLibraryDefinition()
getDefaultLibraryDefinition
in interface JLibrary
@Deprecated public JLibraryDefinition getLibraryDefinition(VersionNumber jdkVer)
getLibraryDefinition
in interface JLibrary
public void setDeployedByDefault(java.lang.Boolean deployed)
setDeployedByDefault
in interface JLibrary
java.lang.UnsupportedOperationException
- instances of this class are
immutable.public void setClassPath(URLPath clsPath)
setClassPath
in interface JPaths
java.lang.UnsupportedOperationException
- instances of this class are
immutable.@Deprecated public void setDefaultClassPath(URLPath clsPath)
setDefaultClassPath
in interface Library
java.lang.UnsupportedOperationException
- instances of this class are
immutable.@Deprecated public void setDefaultDocPath(URLPath docPath)
setDefaultDocPath
in interface Library
java.lang.UnsupportedOperationException
- instances of this class are
immutable.@Deprecated public void setDefaultSourcePath(URLPath srcPath)
setDefaultSourcePath
in interface Library
java.lang.UnsupportedOperationException
- instances of this class are
immutable.public void setDocPath(URLPath docPath)
setDocPath
in interface JPaths
java.lang.UnsupportedOperationException
- instances of this class are
immutable.public void setLocked(boolean isLocked)
public void setName(java.lang.String name)
public void setSourcePath(URLPath srcPath)
setSourcePath
in interface JPaths
java.lang.UnsupportedOperationException
- instances of this class are
immutable.public boolean equivalent(Library library)
Library
equivalent
in interface Library
library
- the Library against which to test for equivalence.public void initFromLibrary(Library library)
Library
initFromLibrary
in interface Library
library
- the Library from which to fetch property values.