public static class Attributes.Name extends Object
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.
Most important attributes have a constant defined in this class. Some other attributes used in Manifest files are:
| Modifier and Type | Field and Description |
|---|---|
static Attributes.Name |
CLASS_PATH
General main attribute -
(relative) file paths of the libraries/classpaths that the Classes in
this jar file depend on.
|
static Attributes.Name |
CONTENT_TYPE
File contents attribute -
Mime type and subtype for the jar entry.
|
static Attributes.Name |
EXTENSION_INSTALLATION
Extension identification attribute -
synonym for
EXTENSTION_NAME. |
static Attributes.Name |
EXTENSION_LIST
Applet attribute -
a list of extension libraries that the applet in this
jar file depends on.
|
static Attributes.Name |
EXTENSION_NAME
Extension identification attribute -
the name if the extension library contained in the jar.
|
static Attributes.Name |
IMPLEMENTATION_TITLE
Package versioning -
name of extension library contained in this jar.
|
static Attributes.Name |
IMPLEMENTATION_URL
Package versioning -
location where this implementation can be downloaded.
|
static Attributes.Name |
IMPLEMENTATION_VENDOR
Package versioning -
name of extension library creator contained in this jar.
|
static Attributes.Name |
IMPLEMENTATION_VENDOR_ID
Package versioning -
unique id of extension library creator.
|
static Attributes.Name |
IMPLEMENTATION_VERSION
Package versioning -
version of the extension library contained in this jar.
|
static Attributes.Name |
MAIN_CLASS
Stand alone application attribute -
the entry (without the .class ending) that is the main
class of this jar file.
|
static Attributes.Name |
MANIFEST_VERSION
General main attribute -
the version of this Manifest file.
|
static Attributes.Name |
SEALED
Package sealing -
whether (all) package(s) is(/are) sealed.
|
static Attributes.Name |
SIGNATURE_VERSION
General main attribute -
the version of the jar file signature.
|
static Attributes.Name |
SPECIFICATION_TITLE
Package versioning -
title of the specification contained in this jar.
|
static Attributes.Name |
SPECIFICATION_VENDOR
Package versioning -
organisation that maintains the specification contains in this
jar.
|
static Attributes.Name |
SPECIFICATION_VERSION
Package versioning -
version of the specification contained in this jar.
|
| Constructor and Description |
|---|
Attributes.Name(String name)
Creates a new Name from the given String.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Checks if another object is equal to this Name object.
|
int |
hashCode()
Returns the hash code of the (lowercase) String representation of
this Name.
|
String |
toString()
Returns the string representation of this Name as given to the
constructor (not neccesarily the lower case representation).
|
public static final Attributes.Name MANIFEST_VERSION
public static final Attributes.Name SIGNATURE_VERSION
public static final Attributes.Name CLASS_PATH
public static final Attributes.Name MAIN_CLASS
public static final Attributes.Name EXTENSION_LIST
public static final Attributes.Name EXTENSION_NAME
public static final Attributes.Name EXTENSION_INSTALLATION
EXTENSTION_NAME.public static final Attributes.Name IMPLEMENTATION_TITLE
public static final Attributes.Name IMPLEMENTATION_VERSION
public static final Attributes.Name IMPLEMENTATION_VENDOR
public static final Attributes.Name IMPLEMENTATION_VENDOR_ID
public static final Attributes.Name IMPLEMENTATION_URL
public static final Attributes.Name SPECIFICATION_TITLE
public static final Attributes.Name SPECIFICATION_VERSION
public static final Attributes.Name SPECIFICATION_VENDOR
public static final Attributes.Name SEALED
public static final Attributes.Name CONTENT_TYPE
public Attributes.Name(String name) throws IllegalArgumentException, NullPointerException
name - the name of the new NameIllegalArgumentException - if name isn't a valid String
representation of a NameNullPointerException - if name is nullpublic int hashCode()
hashCode in class ObjectObject.equals(Object),
System.identityHashCode(Object)public boolean equals(Object o)
equals in class Objecto - the Object to compare toObject.hashCode()public String toString()
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)