- java.lang.Object
-
- java.util.jar.Attributes.Name
-
- Enclosing class:
- Attributes
public static class Attributes.Name extends 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
Fields Modifier and Type Field and Description static Attributes.Name
CLASS_PATH
Name
object forClass-Path
manifest attribute.static Attributes.Name
CONTENT_TYPE
Name
object forContent-Type
manifest attribute.static Attributes.Name
EXTENSION_INSTALLATION
Name
object forExtension-Name
manifest attribute used for declaring dependencies on installed extensions.static Attributes.Name
EXTENSION_LIST
Name
object forExtension-List
manifest attribute used for declaring dependencies on installed extensions.static Attributes.Name
EXTENSION_NAME
Name
object forExtension-Name
manifest attribute used for declaring dependencies on installed extensions.static Attributes.Name
IMPLEMENTATION_TITLE
Name
object forImplementation-Title
manifest attribute used for package versioning.static Attributes.Name
IMPLEMENTATION_URL
Name
object forImplementation-Vendor-URL
manifest attribute used for package versioning.static Attributes.Name
IMPLEMENTATION_VENDOR
Name
object forImplementation-Vendor
manifest attribute used for package versioning.static Attributes.Name
IMPLEMENTATION_VENDOR_ID
Name
object forImplementation-Vendor-Id
manifest attribute used for package versioning.static Attributes.Name
IMPLEMENTATION_VERSION
Name
object forImplementation-Version
manifest attribute used for package versioning.static Attributes.Name
MAIN_CLASS
Name
object forMain-Class
manifest attribute used for launching applications packaged in JAR files.static Attributes.Name
MANIFEST_VERSION
Name
object forManifest-Version
manifest attribute.static Attributes.Name
SEALED
Name
object forSealed
manifest attribute used for sealing.static Attributes.Name
SIGNATURE_VERSION
Name
object forSignature-Version
manifest attribute used when signing JAR files.static Attributes.Name
SPECIFICATION_TITLE
Name
object forSpecification-Title
manifest attribute used for package versioning.static Attributes.Name
SPECIFICATION_VENDOR
Name
object forSpecification-Vendor
manifest attribute used for package versioning.static Attributes.Name
SPECIFICATION_VERSION
Name
object forSpecification-Version
manifest attribute used for package versioning.
-
Constructor Summary
Constructors Constructor and Description Attributes.Name(String name)
Constructs a new attribute name using the given string name.
-
-
-
Field Detail
-
MANIFEST_VERSION
public static final Attributes.Name MANIFEST_VERSION
Name
object forManifest-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
public static final Attributes.Name SIGNATURE_VERSION
Name
object forSignature-Version
manifest attribute used when signing JAR files.- See Also:
- Manifest and Signature Specification
-
CONTENT_TYPE
public static final Attributes.Name CONTENT_TYPE
Name
object forContent-Type
manifest attribute.
-
CLASS_PATH
public static final Attributes.Name CLASS_PATH
Name
object forClass-Path
manifest attribute. Bundled extensions can use this attribute to find other JAR files containing needed classes.- See Also:
- Extensions Specification
-
MAIN_CLASS
public static final Attributes.Name MAIN_CLASS
Name
object forMain-Class
manifest attribute used for launching applications packaged in JAR files. TheMain-Class
attribute is used in conjunction with the-jar
command-line option of the java application launcher.
-
SEALED
public static final Attributes.Name SEALED
Name
object forSealed
manifest attribute used for sealing.- See Also:
- Extension Sealing
-
EXTENSION_LIST
public static final Attributes.Name EXTENSION_LIST
Name
object forExtension-List
manifest attribute used for declaring dependencies on installed extensions.- See Also:
- Installed extension dependency
-
EXTENSION_NAME
public static final Attributes.Name EXTENSION_NAME
Name
object forExtension-Name
manifest attribute used for declaring dependencies on installed extensions.- See Also:
- Installed extension dependency
-
EXTENSION_INSTALLATION
public static final Attributes.Name EXTENSION_INSTALLATION
Name
object forExtension-Name
manifest attribute used for declaring dependencies on installed extensions.- See Also:
- Installed extension dependency
-
IMPLEMENTATION_TITLE
public static final Attributes.Name IMPLEMENTATION_TITLE
Name
object forImplementation-Title
manifest attribute used for package versioning.- See Also:
- Java Product Versioning Specification
-
IMPLEMENTATION_VERSION
public static final Attributes.Name IMPLEMENTATION_VERSION
Name
object forImplementation-Version
manifest attribute used for package versioning.- See Also:
- Java Product Versioning Specification
-
IMPLEMENTATION_VENDOR
public static final Attributes.Name IMPLEMENTATION_VENDOR
Name
object forImplementation-Vendor
manifest attribute used for package versioning.- See Also:
- Java Product Versioning Specification
-
IMPLEMENTATION_VENDOR_ID
public static final Attributes.Name IMPLEMENTATION_VENDOR_ID
Name
object forImplementation-Vendor-Id
manifest attribute used for package versioning.- See Also:
- Java Product Versioning Specification
-
IMPLEMENTATION_URL
public static final Attributes.Name IMPLEMENTATION_URL
Name
object forImplementation-Vendor-URL
manifest attribute used for package versioning.- See Also:
- Java Product Versioning Specification
-
SPECIFICATION_TITLE
public static final Attributes.Name SPECIFICATION_TITLE
Name
object forSpecification-Title
manifest attribute used for package versioning.- See Also:
- Java Product Versioning Specification
-
SPECIFICATION_VERSION
public static final Attributes.Name SPECIFICATION_VERSION
Name
object forSpecification-Version
manifest attribute used for package versioning.- See Also:
- Java Product Versioning Specification
-
SPECIFICATION_VENDOR
public static final Attributes.Name SPECIFICATION_VENDOR
Name
object forSpecification-Vendor
manifest attribute used for package versioning.- See Also:
- Java Product Versioning Specification
-
-
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 invalidNullPointerException
- if the attribute name was null
-
-
Method Detail
-
equals
public boolean equals(Object o)
Compares this attribute name to another for equality.- Overrides:
equals
in classObject
- Parameters:
o
- the object to compare- Returns:
- true if this attribute name is equal to the specified attribute object
- See Also:
Object.hashCode()
,HashMap
-
hashCode
public int hashCode()
Computes the hash value for this attribute name.- Overrides:
hashCode
in classObject
- Returns:
- a hash code value for this object.
- See Also:
Object.equals(java.lang.Object)
,System.identityHashCode(java.lang.Object)
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-java/util/jar/attributes.name.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.