Class Metadata
java.lang.Object
org.glassfish.spec.Metadata
Represents an API JAR
MANIFEST.MF entries.-
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.private StringBundle Spec Version.private StringBundle Symbolic Name.private StringBundle Version.List of collected errors.static final StringEntry name for Jar Extension Name.static final StringEntry name for Jar Implementation Version.static final StringEntry name for Jar Specification Version.private StringJar Extension Name.private StringJar Implementation Version.private StringJar Specification Version.private static final String[]All the metadata entry names.private PropertiesProperties. -
Constructor Summary
Constructors -
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
-
bundleSymbolicName
Bundle Symbolic Name. -
bundleSpecVersion
Bundle Spec Version. -
bundleVersion
Bundle Version. -
jarExtensionName
Jar Extension Name. -
jarSpecificationVersion
Jar Specification Version. -
jarImplementationVersion
Jar Implementation Version. -
properties
Properties. -
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:
-
errors
-
KEYS
All the metadata entry names.
-
-
Constructor Details
-
Metadata
Create a newMetadatainstance.- Parameters:
bsn- bundle symbolic namebsv- bundle spec versionbv- bundle versionjen- jar extension namejsv- jar spec versionjiv- jar implementation versionerrs- errors
-
Metadata
-
-
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
-