Java Platform 1.2

java.util.jar
Class Attributes.Name

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

public static class Attributes.Name
extends Object

The Attributes.Name class represents an attribute name stored in this Map. Attribute names are case-insensitive and restricted to the ASCII characters in the set [0-9a-zA-Z_-].


Field Summary
static Attributes.Name CLASS_PATH
          Some predefined attribute names.
static Attributes.Name CONTENT_TYPE
          Some predefined attribute names.
static Attributes.Name IMPLEMENTATION_TITLE
          Some predefined attribute names.
static Attributes.Name IMPLEMENTATION_VENDOR
          Some predefined attribute names.
static Attributes.Name IMPLEMENTATION_VERSION
          Some predefined attribute names.
static Attributes.Name MAIN_CLASS
          Some predefined attribute names.
static Attributes.Name MANIFEST_VERSION
          Some predefined attribute names.
static Attributes.Name SEALED
          Some predefined attribute names.
static Attributes.Name SIGNATURE_VERSION
          Some predefined attribute names.
static Attributes.Name SPECIFICATION_TITLE
          Some predefined attribute names.
static Attributes.Name SPECIFICATION_VENDOR
          Some predefined attribute names.
static Attributes.Name SPECIFICATION_VERSION
          Some predefined attribute names.
 
Constructor Summary
Attributes.Name(String name)
          Constructs a new attribute name using the given string name.
 
Method Summary
 boolean equals(Object o)
          Compares this attribute name to another for equality.
 int hashCode()
          Computes the hash value for this attribute name.
 String toString()
          Returns the attribute name as a String.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MANIFEST_VERSION

public static final Attributes.Name MANIFEST_VERSION
Some predefined attribute names.

SIGNATURE_VERSION

public static final Attributes.Name SIGNATURE_VERSION
Some predefined attribute names.

CONTENT_TYPE

public static final Attributes.Name CONTENT_TYPE
Some predefined attribute names.

CLASS_PATH

public static final Attributes.Name CLASS_PATH
Some predefined attribute names.

MAIN_CLASS

public static final Attributes.Name MAIN_CLASS
Some predefined attribute names.

SEALED

public static final Attributes.Name SEALED
Some predefined attribute names.

IMPLEMENTATION_TITLE

public static final Attributes.Name IMPLEMENTATION_TITLE
Some predefined attribute names.

IMPLEMENTATION_VERSION

public static final Attributes.Name IMPLEMENTATION_VERSION
Some predefined attribute names.

IMPLEMENTATION_VENDOR

public static final Attributes.Name IMPLEMENTATION_VENDOR
Some predefined attribute names.

SPECIFICATION_TITLE

public static final Attributes.Name SPECIFICATION_TITLE
Some predefined attribute names.

SPECIFICATION_VERSION

public static final Attributes.Name SPECIFICATION_VERSION
Some predefined attribute names.

SPECIFICATION_VENDOR

public static final Attributes.Name SPECIFICATION_VENDOR
Some predefined attribute names.
Constructor Detail

Attributes.Name

public Attributes.Name(String name)
Constructs a new attribute name using the given string name.
Parameters:
name - the attribute string name
Throws:
IllegalArgumentException - if the attribute name was invalid
NullPointerException - if the attribute name was null
Method Detail

equals

public boolean equals(Object o)
Compares this attribute name to another for equality.
Parameters:
o - the object to compare
Overrides:
equals in class Object

hashCode

public int hashCode()
Computes the hash value for this attribute name.
Overrides:
hashCode in class Object

toString

public String toString()
Returns the attribute name as a String.
Overrides:
toString in class Object

Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.