Class Metadata
java.lang.Object
org.glassfish.spec.Metadata
Represents an API JAR
MANIFEST.MF entries.- Author:
- Romain Grecourt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEntry name for Bundle Spec Version.static final StringEntry name for Bundle Symbolic Name.static final StringEntry name for Bundle Version.static final StringEntry name for Jar Extension Name.static final StringEntry name for Jar Implementation Version.static final StringEntry name for Jar Specification Version. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataCreate a newMetadatainstance from a JAR file.Get the bundle spec version entry.Get the bundle symbolic name entry.Get the bundle version entry.Get the metadata errors.Get the jar extension name entry.Get the jar implementation version entry.Get the jar specification version entry.Get the metadata properties.
-
Field Details
-
BUNDLE_SYMBOLIC_NAME
-
BUNDLE_SPEC_VERSION
-
BUNDLE_VERSION
-
JAR_EXTENSION_NAME
-
JAR_SPECIFICATION_VERSION
Entry name for Jar Specification Version.- See Also:
-
JAR_IMPLEMENTATION_VERSION
Entry name for Jar Implementation Version.- See Also:
-
-
Method Details
-
fromJar
Create a newMetadatainstance from a JAR file.- Parameters:
jar- the JAR file to process- Returns:
- the created
Metadatainstance - Throws:
IOException- if an error occurs while reading JAR entries
-
getBundleSymbolicName
Get the bundle symbolic name entry.- Returns:
- bundle symbolic name
-
getBundleSpecVersion
Get the bundle spec version entry.- Returns:
- bundle spec version
-
getBundleVersion
-
getJarExtensionName
-
getJarSpecificationVersion
Get the jar specification version entry.- Returns:
- jar specification version
-
getjarImplementationVersion
Get the jar implementation version entry.- Returns:
- jar implementation version
-
getProperties
-
getErrors
-