Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.util.jar

Class Attributes.Name

java.lang.Object
|
+--java.util.jar.Attributes.Name


public static class Attributes.Name

extends Object

Represents a name of a Manifest Attribute. Defines a couple of well know names for the general main attributes, stand alone application attributes, applet attributes, extension identification attributes, package versioning and sealing attributes, file contents attributes, bean objects attribute and signing attributes. See the

The characters of a Name must obey the following restrictions:

When comparing Names (with equals) all characters are converted to lowercase. But you can get the original case sensitive string with the toString() method.

Since:Author:

Field Summary

static java.util.jar.Attributes.NameCLASS_PATH

General main attribute - (relative) URLs of the libraries/classpaths that the Classes in this jar file depend on.
static java.util.jar.Attributes.NameCONTENT_TYPE

File contents attribute - Mime type and subtype for the jar entry.
static java.util.jar.Attributes.NameCREATED_BY

General main attribute - tool and version that created this Manifest file.
static java.util.jar.Attributes.NameEXTENSION_INSTALLATION

Extension identification attribute - synonym for EXTENSTION_NAME.
static java.util.jar.Attributes.NameEXTENSION_LIST

Applet attribute - a list of extension libraries that the applet in this jar file depends on.
static java.util.jar.Attributes.NameEXTENSION_NAME

Extension identification attribute - the name if the extension library contained in the jar.
static java.util.jar.Attributes.NameIMPLEMENTATION_TITLE

Package versioning - name of extension library contained in this jar.
static java.util.jar.Attributes.NameIMPLEMENTATION_URL

Package versioning - location where this implementation can be downloaded.
static java.util.jar.Attributes.NameIMPLEMENTATION_VENDOR

Package versioning - name of extension library creator contained in this jar.
static java.util.jar.Attributes.NameIMPLEMENTATION_VENDOR_ID

Package versioning - unique id of extension library creator.
static java.util.jar.Attributes.NameIMPLEMENTATION_VERSION

Package versioning - version of the extension library contained in this jar.
static java.util.jar.Attributes.NameJAVA_BEAN

Bean objects attribute - whether the entry is a Java Bean.
static java.util.jar.Attributes.NameMAGIC

Signing attribute - application specific signing attribute.
static java.util.jar.Attributes.NameMAIN_CLASS

Stand alone application attribute - the entry (without the .class ending) that is the main class of this jar file.
static java.util.jar.Attributes.NameMANIFEST_VERSION

General main attribute - the version of this Manifest file.
static java.util.jar.Attributes.NameSEALED

Package sealing - whether (all) package(s) is(/are) sealed.
static java.util.jar.Attributes.NameSIGNATURE_VERSION

General main attribute - the version of the jar file signature.
static java.util.jar.Attributes.NameSPECIFICATION_TITLE

Package versioning - title of the specification contained in this jar.
static java.util.jar.Attributes.NameSPECIFICATION_VENDOR

Package versioning - organisation that maintains the specification contains in this jar.
static java.util.jar.Attributes.NameSPECIFICATION_VERSION

Package versioning - version of the specification contained in this jar.

Constructor Summary

Name(java.lang.String name)

Creates a new Name from the given String.

Method Summary

booleanequals(java.lang.Object o)

Checks if another object is equal to this Name object.
inthashCode()

Returns the hash code of the (lowercase) String representation of this Name.
java.lang.StringtoString()

Returns the string representation of this Name as given to the constructor (not neccesarily the lower case representation).

Field Details

CLASS_PATH

public static final Attributes.Name CLASS_PATH

General main attribute - (relative) URLs of the libraries/classpaths that the Classes in this jar file depend on.


CONTENT_TYPE

public static final Attributes.Name CONTENT_TYPE

File contents attribute - Mime type and subtype for the jar entry.


CREATED_BY

public static final Attributes.Name CREATED_BY

General main attribute - tool and version that created this Manifest file.


EXTENSION_INSTALLATION

public static final Attributes.Name EXTENSION_INSTALLATION

Extension identification attribute - synonym for EXTENSTION_NAME.


EXTENSION_LIST

public static final Attributes.Name EXTENSION_LIST

Applet attribute - a list of extension libraries that the applet in this jar file depends on. For every named extension there should be some Attributes in the Manifest manifest file with the following Names:


EXTENSION_NAME

public static final Attributes.Name EXTENSION_NAME

Extension identification attribute - the name if the extension library contained in the jar.


IMPLEMENTATION_TITLE

public static final Attributes.Name IMPLEMENTATION_TITLE

Package versioning - name of extension library contained in this jar.


IMPLEMENTATION_URL

public static final Attributes.Name IMPLEMENTATION_URL

Package versioning - location where this implementation can be downloaded.


IMPLEMENTATION_VENDOR

public static final Attributes.Name IMPLEMENTATION_VENDOR

Package versioning - name of extension library creator contained in this jar.


IMPLEMENTATION_VENDOR_ID

public static final Attributes.Name IMPLEMENTATION_VENDOR_ID

Package versioning - unique id of extension library creator.


IMPLEMENTATION_VERSION

public static final Attributes.Name IMPLEMENTATION_VERSION

Package versioning - version of the extension library contained in this jar.


JAVA_BEAN

public static final Attributes.Name JAVA_BEAN

Bean objects attribute - whether the entry is a Java Bean. Value is either "true" or "false".


MAGIC

public static final Attributes.Name MAGIC

Signing attribute - application specific signing attribute. Must be understood by the manifest parser when present to validate the jar (entry).


MAIN_CLASS

public static final Attributes.Name MAIN_CLASS

Stand alone application attribute - the entry (without the .class ending) that is the main class of this jar file.


MANIFEST_VERSION

public static final Attributes.Name MANIFEST_VERSION

General main attribute - the version of this Manifest file.


SEALED

public static final Attributes.Name SEALED

Package sealing - whether (all) package(s) is(/are) sealed. Value is either "true" or "false".


SIGNATURE_VERSION

public static final Attributes.Name SIGNATURE_VERSION

General main attribute - the version of the jar file signature.


SPECIFICATION_TITLE

public static final Attributes.Name SPECIFICATION_TITLE

Package versioning - title of the specification contained in this jar.


SPECIFICATION_VENDOR

public static final Attributes.Name SPECIFICATION_VENDOR

Package versioning - organisation that maintains the specification contains in this jar.


SPECIFICATION_VERSION

public static final Attributes.Name SPECIFICATION_VERSION

Package versioning - version of the specification contained in this jar.


Constructor Details

Name

public Name(java.lang.String name)

Creates a new Name from the given String. Throws an IllegalArgumentException if the given String is empty or contains any illegal Name characters.

Parameters:

Throws:


Method Details

equals

public boolean equals(java.lang.Object o)

Checks if another object is equal to this Name object. Another object is equal to this Name object if it is an instance of Name and the (lowercase) string representation of the name is equal.

Parameters:


hashCode

public int hashCode()

Returns the hash code of the (lowercase) String representation of this Name.


toString

public String toString()

Returns the string representation of this Name as given to the constructor (not neccesarily the lower case representation).