# Attributes.Name

public static class **Attributes.Name** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
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](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/jar/jar.html)
for more information about valid attribute names and values.

### Field Summary

|---|---|---|
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [CLASS_PATH](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#CLASS_PATH) | `Name` object for `Class-Path` manifest attribute. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [CONTENT_TYPE](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#CONTENT_TYPE) | `Name` object for `Content-Type` manifest attribute. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [EXTENSION_INSTALLATION](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#EXTENSION_INSTALLATION) | *This field is deprecated. Extension mechanism will be removed in a future release. Use class path instead.* |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [EXTENSION_LIST](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#EXTENSION_LIST) | `Name` object for `Extension-List` manifest attribute used for declaring dependencies on installed extensions. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [EXTENSION_NAME](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#EXTENSION_NAME) | `Name` object for `Extension-Name` manifest attribute used for declaring dependencies on installed extensions. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [IMPLEMENTATION_TITLE](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#IMPLEMENTATION_TITLE) | `Name` object for `Implementation-Title` manifest attribute used for package versioning. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [IMPLEMENTATION_URL](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#IMPLEMENTATION_URL) | *This field is deprecated. Extension mechanism will be removed in a future release. Use class path instead.* |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [IMPLEMENTATION_VENDOR](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#IMPLEMENTATION_VENDOR) | `Name` object for `Implementation-Vendor` manifest attribute used for package versioning. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [IMPLEMENTATION_VENDOR_ID](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#IMPLEMENTATION_VENDOR_ID) | *This field is deprecated. Extension mechanism will be removed in a future release. Use class path instead.* |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [IMPLEMENTATION_VERSION](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#IMPLEMENTATION_VERSION) | `Name` object for `Implementation-Version` manifest attribute used for package versioning. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [MAIN_CLASS](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#MAIN_CLASS) | `Name` object for `Main-Class` manifest attribute used for launching applications packaged in JAR files. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [MANIFEST_VERSION](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#MANIFEST_VERSION) | `Name` object for `Manifest-Version` manifest attribute. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [SEALED](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#SEALED) | `Name` object for `Sealed` manifest attribute used for sealing. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [SIGNATURE_VERSION](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#SIGNATURE_VERSION) | `Name` object for `Signature-Version` manifest attribute used when signing JAR files. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [SPECIFICATION_TITLE](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#SPECIFICATION_TITLE) | `Name` object for `Specification-Title` manifest attribute used for package versioning. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [SPECIFICATION_VENDOR](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#SPECIFICATION_VENDOR) | `Name` object for `Specification-Vendor` manifest attribute used for package versioning. |
| public static final [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) | [SPECIFICATION_VERSION](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#SPECIFICATION_VERSION) | `Name` object for `Specification-Version` manifest attribute used for package versioning. |

### Public Constructor Summary

|---|---|
|   | [Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#Name(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Constructs a new attribute name using the given string name. |

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) o) Compares this attribute name to another for equality. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#hashCode())() Computes the hash value for this attribute name. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html#toString())() Returns the attribute name as a String. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Fields

#### public static final 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

- [JAR file specification](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/jar/jar.html#classpath)

#### public static final Attributes.Name
**CONTENT_TYPE**

`Name` object for `Content-Type`
manifest attribute.

#### public static final Attributes.Name
**EXTENSION_INSTALLATION**


**This field is deprecated.**   
Extension mechanism will be removed in a future release.
Use class path instead.
`Name` object for `Extension-Name` manifest attribute
used for declaring dependencies on installed extensions.

##### See Also

- [Installed extension dependency](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/extensions/spec.html#dependency)

#### public static final Attributes.Name
**EXTENSION_LIST**

`Name` object for `Extension-List` manifest attribute
used for declaring dependencies on installed extensions.

##### See Also

- [Installed extension dependency](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/extensions/spec.html#dependency)

#### public static final Attributes.Name
**EXTENSION_NAME**

`Name` object for `Extension-Name` manifest attribute
used for declaring dependencies on installed extensions.

##### See Also

- [Installed extension dependency](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/extensions/spec.html#dependency)

#### public static final Attributes.Name
**IMPLEMENTATION_TITLE**

`Name` object for `Implementation-Title`
manifest attribute used for package versioning.

##### See Also

- [Java Product Versioning Specification](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/versioning/spec/versioning2.html#wp90779)

#### public static final Attributes.Name
**IMPLEMENTATION_URL**


**This field is deprecated.**   
Extension mechanism will be removed in a future release.
Use class path instead.
`Name` object for `Implementation-URL`
manifest attribute used for package versioning.

##### See Also

- [Optional Package Versioning](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/extensions/versioning.html#applet)

#### public static final Attributes.Name
**IMPLEMENTATION_VENDOR**

`Name` object for `Implementation-Vendor`
manifest attribute used for package versioning.

##### See Also

- [Java Product Versioning Specification](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/versioning/spec/versioning2.html#wp90779)

#### public static final Attributes.Name
**IMPLEMENTATION_VENDOR_ID**


**This field is deprecated.**   
Extension mechanism will be removed in a future release.
Use class path instead.
`Name` object for `Implementation-Vendor-Id`
manifest attribute used for package versioning.

##### See Also

- [Optional Package Versioning](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/extensions/versioning.html#applet)

#### public static final Attributes.Name
**IMPLEMENTATION_VERSION**

`Name` object for `Implementation-Version`
manifest attribute used for package versioning.

##### See Also

- [Java Product Versioning Specification](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/versioning/spec/versioning2.html#wp90779)

#### public static final 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.

#### public static final 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](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/jar/jar.html#JAR_Manifest)

#### public static final Attributes.Name
**SEALED**

`Name` object for `Sealed` manifest attribute
used for sealing.

##### See Also

- [Package Sealing](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/jar/jar.html#sealing)

#### public static final Attributes.Name
**SIGNATURE_VERSION**

`Name` object for `Signature-Version`
manifest attribute used when signing JAR files.

##### See Also

- [Manifest and Signature Specification](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/jar/jar.html#JAR_Manifest)

#### public static final Attributes.Name
**SPECIFICATION_TITLE**

`Name` object for `Specification-Title`
manifest attribute used for package versioning.

##### See Also

- [Java Product Versioning Specification](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/versioning/spec/versioning2.html#wp90779)

#### public static final Attributes.Name
**SPECIFICATION_VENDOR**

`Name` object for `Specification-Vendor`
manifest attribute used for package versioning.

##### See Also

- [Java Product Versioning Specification](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/versioning/spec/versioning2.html#wp90779)

#### public static final Attributes.Name
**SPECIFICATION_VERSION**

`Name` object for `Specification-Version`
manifest attribute used for package versioning.

##### See Also

- [Java Product Versioning Specification](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/versioning/spec/versioning2.html#wp90779)

## Public Constructors

#### public
**Name**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name)

Constructs a new attribute name using the given string name.

##### Parameters

| name | the attribute string name |
|---|---|

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | if the attribute name was invalid |
| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | if the attribute name was null |
|---|---|

## Public Methods

#### public boolean
**equals**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) o)

Compares this attribute name to another for equality.

##### Parameters

| o | the object to compare |
|---|---|

##### Returns

- true if this attribute name is equal to the specified attribute object

#### public int
**hashCode**
()

Computes the hash value for this attribute name.

##### Returns

- this object's hash code.

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**toString**
()

Returns the attribute name as a String.

##### Returns

- a printable representation of this object.