java.util.jar
Class Attributes.Name

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.jar.Attributes.Name
Enclosing class:
Attributes sample code for java.util.jar.Attributes definition code for java.util.jar.Attributes

public static class Attributes.Name
extends Object sample code for java.lang.Object definition code for java.lang.Object

The Attributes.Name class represents an attribute name stored in this Map. Valid attribute names are case-insensitive, are restricted to the ASCII characters in the set [0-9a-zA-Z_-], and cannot exceed 70 characters in length. Attribute values can contain any characters and will be UTF8-encoded when written to the output stream. See the JAR File Specification for more information about valid attribute names and values.


Field Summary
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name CLASS_PATH sample code for java.util.jar.Attributes.Name.CLASS_PATH definition code for java.util.jar.Attributes.Name.CLASS_PATH
          Name object for Class-Path manifest attribute.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name CONTENT_TYPE sample code for java.util.jar.Attributes.Name.CONTENT_TYPE definition code for java.util.jar.Attributes.Name.CONTENT_TYPE
          Name object for Content-Type manifest attribute.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name EXTENSION_INSTALLATION sample code for java.util.jar.Attributes.Name.EXTENSION_INSTALLATION definition code for java.util.jar.Attributes.Name.EXTENSION_INSTALLATION
          Name object for Extension-Name manifest attribute used for declaring dependencies on installed extensions.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name EXTENSION_LIST sample code for java.util.jar.Attributes.Name.EXTENSION_LIST definition code for java.util.jar.Attributes.Name.EXTENSION_LIST
          Name object for Extension-List manifest attribute used for declaring dependencies on installed extensions.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name EXTENSION_NAME sample code for java.util.jar.Attributes.Name.EXTENSION_NAME definition code for java.util.jar.Attributes.Name.EXTENSION_NAME
          Name object for Extension-Name manifest attribute used for declaring dependencies on installed extensions.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name IMPLEMENTATION_TITLE sample code for java.util.jar.Attributes.Name.IMPLEMENTATION_TITLE definition code for java.util.jar.Attributes.Name.IMPLEMENTATION_TITLE
          Name object for Implementation-Title manifest attribute used for package versioning.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name IMPLEMENTATION_URL sample code for java.util.jar.Attributes.Name.IMPLEMENTATION_URL definition code for java.util.jar.Attributes.Name.IMPLEMENTATION_URL
          Name object for Implementation-Vendor-URL manifest attribute used for package versioning.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name IMPLEMENTATION_VENDOR sample code for java.util.jar.Attributes.Name.IMPLEMENTATION_VENDOR definition code for java.util.jar.Attributes.Name.IMPLEMENTATION_VENDOR
          Name object for Implementation-Vendor manifest attribute used for package versioning.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name IMPLEMENTATION_VENDOR_ID sample code for java.util.jar.Attributes.Name.IMPLEMENTATION_VENDOR_ID definition code for java.util.jar.Attributes.Name.IMPLEMENTATION_VENDOR_ID
          Name object for Implementation-Vendor-Id manifest attribute used for package versioning.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name IMPLEMENTATION_VERSION sample code for java.util.jar.Attributes.Name.IMPLEMENTATION_VERSION definition code for java.util.jar.Attributes.Name.IMPLEMENTATION_VERSION
          Name object for Implementation-Version manifest attribute used for package versioning.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name MAIN_CLASS sample code for java.util.jar.Attributes.Name.MAIN_CLASS definition code for java.util.jar.Attributes.Name.MAIN_CLASS
          Name object for Main-Class manifest attribute used for launching applications packaged in JAR files.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name MANIFEST_VERSION sample code for java.util.jar.Attributes.Name.MANIFEST_VERSION definition code for java.util.jar.Attributes.Name.MANIFEST_VERSION
          Name object for Manifest-Version manifest attribute.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name SEALED sample code for java.util.jar.Attributes.Name.SEALED definition code for java.util.jar.Attributes.Name.SEALED
          Name object for Sealed manifest attribute used for sealing.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name SIGNATURE_VERSION sample code for java.util.jar.Attributes.Name.SIGNATURE_VERSION definition code for java.util.jar.Attributes.Name.SIGNATURE_VERSION
          Name object for Signature-Version manifest attribute used when signing JAR files.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name SPECIFICATION_TITLE sample code for java.util.jar.Attributes.Name.SPECIFICATION_TITLE definition code for java.util.jar.Attributes.Name.SPECIFICATION_TITLE
          Name object for Specification-Title manifest attribute used for package versioning.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name SPECIFICATION_VENDOR sample code for java.util.jar.Attributes.Name.SPECIFICATION_VENDOR definition code for java.util.jar.Attributes.Name.SPECIFICATION_VENDOR
          Name object for Specification-Vendor manifest attribute used for package versioning.
static Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name SPECIFICATION_VERSION sample code for java.util.jar.Attributes.Name.SPECIFICATION_VERSION definition code for java.util.jar.Attributes.Name.SPECIFICATION_VERSION
          Name object for Specification-Version manifest attribute used for package versioning.
 
Constructor Summary
Attributes.Name sample code for java.util.jar.Attributes.Name.Attributes.Name(java.lang.String) definition code for java.util.jar.Attributes.Name.Attributes.Name(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Constructs a new attribute name using the given string name.
 
Method Summary
 boolean equals sample code for java.util.jar.Attributes.Name.equals(java.lang.Object) definition code for java.util.jar.Attributes.Name.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  o)
          Compares this attribute name to another for equality.
 int hashCode sample code for java.util.jar.Attributes.Name.hashCode() definition code for java.util.jar.Attributes.Name.hashCode() ()
          Computes the hash value for this attribute name.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for java.util.jar.Attributes.Name.toString() definition code for java.util.jar.Attributes.Name.toString() ()
          Returns the attribute name as a String.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

MANIFEST_VERSION sample code for java.util.jar.Attributes.Name.MANIFEST_VERSION

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  MANIFEST_VERSION
Name object for Manifest-Version manifest attribute. This attribute indicates the version number of the manifest standard to which a JAR file's manifest conforms.

See Also:
Manifest and Signature Specification

SIGNATURE_VERSION sample code for java.util.jar.Attributes.Name.SIGNATURE_VERSION

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  SIGNATURE_VERSION
Name object for Signature-Version manifest attribute used when signing JAR files.

See Also:
Manifest and Signature Specification

CONTENT_TYPE sample code for java.util.jar.Attributes.Name.CONTENT_TYPE

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  CONTENT_TYPE
Name object for Content-Type manifest attribute.


CLASS_PATH sample code for java.util.jar.Attributes.Name.CLASS_PATH

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  CLASS_PATH
Name object for Class-Path manifest attribute. Bundled extensions can use this attribute to find other JAR files containing needed classes.

See Also:
Extensions Specification

MAIN_CLASS sample code for java.util.jar.Attributes.Name.MAIN_CLASS

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  MAIN_CLASS
Name object for Main-Class manifest attribute used for launching applications packaged in JAR files. The Main-Class attribute is used in conjunction with the -jar command-line option of the java application launcher.


SEALED sample code for java.util.jar.Attributes.Name.SEALED

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  SEALED
Name object for Sealed manifest attribute used for sealing.

See Also:
Extension Sealing

EXTENSION_LIST sample code for java.util.jar.Attributes.Name.EXTENSION_LIST

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  EXTENSION_LIST
Name object for Extension-List manifest attribute used for declaring dependencies on installed extensions.

See Also:
Installed extension dependency

EXTENSION_NAME sample code for java.util.jar.Attributes.Name.EXTENSION_NAME

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  EXTENSION_NAME
Name object for Extension-Name manifest attribute used for declaring dependencies on installed extensions.

See Also:
Installed extension dependency

EXTENSION_INSTALLATION sample code for java.util.jar.Attributes.Name.EXTENSION_INSTALLATION

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  EXTENSION_INSTALLATION
Name object for Extension-Name manifest attribute used for declaring dependencies on installed extensions.

See Also:
Installed extension dependency

IMPLEMENTATION_TITLE sample code for java.util.jar.Attributes.Name.IMPLEMENTATION_TITLE

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  IMPLEMENTATION_TITLE
Name object for Implementation-Title manifest attribute used for package versioning.

See Also:
Java Product Versioning Specification

IMPLEMENTATION_VERSION sample code for java.util.jar.Attributes.Name.IMPLEMENTATION_VERSION

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  IMPLEMENTATION_VERSION
Name object for Implementation-Version manifest attribute used for package versioning.

See Also:
Java Product Versioning Specification

IMPLEMENTATION_VENDOR sample code for java.util.jar.Attributes.Name.IMPLEMENTATION_VENDOR

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  IMPLEMENTATION_VENDOR
Name object for Implementation-Vendor manifest attribute used for package versioning.

See Also:
Java Product Versioning Specification

IMPLEMENTATION_VENDOR_ID sample code for java.util.jar.Attributes.Name.IMPLEMENTATION_VENDOR_ID

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  IMPLEMENTATION_VENDOR_ID
Name object for Implementation-Vendor-Id manifest attribute used for package versioning.

See Also:
Java Product Versioning Specification

IMPLEMENTATION_URL sample code for java.util.jar.Attributes.Name.IMPLEMENTATION_URL

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  IMPLEMENTATION_URL
Name object for Implementation-Vendor-URL manifest attribute used for package versioning.

See Also:
Java Product Versioning Specification

SPECIFICATION_TITLE sample code for java.util.jar.Attributes.Name.SPECIFICATION_TITLE

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  SPECIFICATION_TITLE
Name object for Specification-Title manifest attribute used for package versioning.

See Also:
Java Product Versioning Specification

SPECIFICATION_VERSION sample code for java.util.jar.Attributes.Name.SPECIFICATION_VERSION

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  SPECIFICATION_VERSION
Name object for Specification-Version manifest attribute used for package versioning.

See Also:
Java Product Versioning Specification

SPECIFICATION_VENDOR sample code for java.util.jar.Attributes.Name.SPECIFICATION_VENDOR

public static final Attributes.Name sample code for java.util.jar.Attributes.Name definition code for java.util.jar.Attributes.Name  SPECIFICATION_VENDOR
Name object for Specification-Vendor manifest attribute used for package versioning.

See Also:
Java Product Versioning Specification
Constructor Detail

Attributes.Name sample code for java.util.jar.Attributes.Name(java.lang.String) definition code for java.util.jar.Attributes.Name(java.lang.String)

public Attributes.Name(String sample code for java.lang.String definition code for java.lang.String  name)
Constructs a new attribute name using the given string name.

Parameters:
name - the attribute string name
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if the attribute name was invalid
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if the attribute name was null
Method Detail

equals sample code for java.util.jar.Attributes.Name.equals(java.lang.Object) definition code for java.util.jar.Attributes.Name.equals(java.lang.Object)

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  o)
Compares this attribute name to another for equality.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
o - the object to compare
Returns:
true if this attribute name is equal to the specified attribute object
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for java.util.jar.Attributes.Name.hashCode() definition code for java.util.jar.Attributes.Name.hashCode()

public int hashCode()
Computes the hash value for this attribute name.

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

toString sample code for java.util.jar.Attributes.Name.toString() definition code for java.util.jar.Attributes.Name.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns the attribute name as a String.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of the object.