Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Attributes.Name

public static class Attributes.Name
extends Object

java.lang.Object
   ↳ java.util.jar.Attributes.Name


The name part of the name/value pairs constituting an attribute as defined by the specification of the JAR manifest. May be composed of the following ASCII signs as defined in the EBNF below:

 name       = alphanum *headerchar
 headerchar = alphanum | - | _
 alphanum   = {A-Z} | {a-z} | {0-9}
 

Summary

Fields

public static final Attributes.Name CLASS_PATH

The class path (a main attribute).

public static final Attributes.Name CONTENT_TYPE

The Content-Type manifest attribute.

public static final Attributes.Name EXTENSION_INSTALLATION

The Extension-Installation attribute.

public static final Attributes.Name EXTENSION_LIST

The Extension-List attribute defining the extensions that are needed by the applet.

public static final Attributes.Name EXTENSION_NAME

The Extension-Name attribute which defines the unique name of the extension.

public static final Attributes.Name IMPLEMENTATION_TITLE

The Implementation-Title attribute whose value is a string that defines the title of the extension implementation.

public static final Attributes.Name IMPLEMENTATION_URL

The Implementation-URL attribute specifying a URL that can be used to obtain the most recent version of the extension if the required version is not already installed.

public static final Attributes.Name IMPLEMENTATION_VENDOR

The Implementation-Vendor attribute defining the organization that maintains the extension implementation.

public static final Attributes.Name IMPLEMENTATION_VENDOR_ID

The Implementation-Vendor-Id attribute specifies the vendor of an extension implementation if the applet requires an implementation from a specific vendor.

public static final Attributes.Name IMPLEMENTATION_VERSION

The Implementation-Version attribute defining the version of the extension implementation.

public static final Attributes.Name MAIN_CLASS

The main class's name (for stand-alone applications).

public static final Attributes.Name MANIFEST_VERSION

The version of the manifest file (a main attribute).

public static final Attributes.Name SEALED

The Sealed manifest attribute which may have the value true for sealed archives.

public static final Attributes.Name SIGNATURE_VERSION

Defines the signature version of the JAR file.

public static final Attributes.Name SPECIFICATION_TITLE

The Specification-Title attribute defining the title of the extension specification.

public static final Attributes.Name SPECIFICATION_VENDOR

The Specification-Vendor attribute defining the organization that maintains the extension specification.

public static final Attributes.Name SPECIFICATION_VERSION

The Specification-Version attribute defining the version of the extension specification.

Public constructors

Attributes.Name(String name)

Public methods

boolean equals(Object object)

Compares this instance with the specified object and indicates if they are equal.

int hashCode()

Returns an integer hash code for this object.

String toString()

Returns a string containing a concise, human-readable description of this object.

Inherited methods

From class java.lang.Object

Fields

CLASS_PATH

Added in API level 1
Attributes.Name CLASS_PATH

The class path (a main attribute).

CONTENT_TYPE

Added in API level 1
Attributes.Name CONTENT_TYPE

The Content-Type manifest attribute.

EXTENSION_INSTALLATION

Added in API level 1
Attributes.Name EXTENSION_INSTALLATION

The Extension-Installation attribute.

EXTENSION_LIST

Added in API level 1
Attributes.Name EXTENSION_LIST

The Extension-List attribute defining the extensions that are needed by the applet.

EXTENSION_NAME

Added in API level 1
Attributes.Name EXTENSION_NAME

The Extension-Name attribute which defines the unique name of the extension.

IMPLEMENTATION_TITLE

Added in API level 1
Attributes.Name IMPLEMENTATION_TITLE

The Implementation-Title attribute whose value is a string that defines the title of the extension implementation.

IMPLEMENTATION_URL

Added in API level 1
Attributes.Name IMPLEMENTATION_URL

The Implementation-URL attribute specifying a URL that can be used to obtain the most recent version of the extension if the required version is not already installed.

IMPLEMENTATION_VENDOR

Added in API level 1
Attributes.Name IMPLEMENTATION_VENDOR

The Implementation-Vendor attribute defining the organization that maintains the extension implementation.

IMPLEMENTATION_VENDOR_ID

Added in API level 1
Attributes.Name IMPLEMENTATION_VENDOR_ID

The Implementation-Vendor-Id attribute specifies the vendor of an extension implementation if the applet requires an implementation from a specific vendor.

IMPLEMENTATION_VERSION

Added in API level 1
Attributes.Name IMPLEMENTATION_VERSION

The Implementation-Version attribute defining the version of the extension implementation.

MAIN_CLASS

Added in API level 1
Attributes.Name MAIN_CLASS

The main class's name (for stand-alone applications).

MANIFEST_VERSION

Added in API level 1
Attributes.Name MANIFEST_VERSION

The version of the manifest file (a main attribute).

SEALED

Added in API level 1
Attributes.Name SEALED

The Sealed manifest attribute which may have the value true for sealed archives.

SIGNATURE_VERSION

Added in API level 1
Attributes.Name SIGNATURE_VERSION

Defines the signature version of the JAR file.

SPECIFICATION_TITLE

Added in API level 1
Attributes.Name SPECIFICATION_TITLE

The Specification-Title attribute defining the title of the extension specification.

SPECIFICATION_VENDOR

Added in API level 1
Attributes.Name SPECIFICATION_VENDOR

The Specification-Vendor attribute defining the organization that maintains the extension specification.

SPECIFICATION_VERSION

Added in API level 1
Attributes.Name SPECIFICATION_VERSION

The Specification-Version attribute defining the version of the extension specification.

Public constructors

Attributes.Name

Added in API level 1
Attributes.Name (String name)

Parameters
name String

Public methods

equals

Added in API level 1
boolean equals (Object object)

Compares this instance with the specified object and indicates if they are equal. In order to be equal, o must represent the same object as this instance using a class-specific comparison. The general contract is that this comparison should be reflexive, symmetric, and transitive. Also, no object reference other than null is equal to null.

The default implementation returns true only if this == o. See Writing a correct equals method if you intend implementing your own equals method.

The general contract for the equals and hashCode() methods is that if equals returns true for any two objects, then hashCode() must return the same value for these objects. This means that subclasses of Object usually override either both methods or neither of them.

Parameters
object Object: the object to compare this instance with.
Returns
boolean true if the specified object is equal to this Object; false otherwise.

hashCode

Added in API level 1
int hashCode ()

Returns an integer hash code for this object. By contract, any two objects for which equals(Object) returns true must return the same hash code value. This means that subclasses of Object usually override both methods or neither method.

Note that hash values must not change over time unless information used in equals comparisons also changes.

See Writing a correct hashCode method if you intend implementing your own hashCode method.

Returns
int this object's hash code.

toString

Added in API level 1
String toString ()

Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:

   getClass().getName() + '@' + Integer.toHexString(hashCode())

See Writing a useful toString method if you intend implementing your own toString method.

Returns
String a printable representation of this object.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.