Package org.osgi.framework.namespace
Class IdentityNamespace
- java.lang.Object
-
- org.osgi.resource.Namespace
-
- org.osgi.framework.namespace.IdentityNamespace
-
public final class IdentityNamespace extends Namespace
Identity Capability and Requirement Namespace.This class defines the names for the attributes and directives for this namespace. All unspecified capability attributes are of type
Stringand are used as arbitrary matching attributes for the capability. The values associated with the specified directive and attribute keys are of typeString, unless otherwise indicated.Each resource provides exactly one† identity capability that can be used to identify the resource.
The bundle wiring for the bundle revision provides exactly one† identity capability.
† A resource with no symbolic name must not provide an identity capability.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCAPABILITY_COPYRIGHT_ATTRIBUTEThe capability attribute that contains a human readable copyright notice for the resource.static java.lang.StringCAPABILITY_DESCRIPTION_ATTRIBUTEThe capability attribute that contains a human readable description for the resource.static java.lang.StringCAPABILITY_DOCUMENTATION_ATTRIBUTEThe capability attribute that contains the URL to documentation for the resource.static java.lang.StringCAPABILITY_LICENSE_ATTRIBUTEThe capability attribute that contains the URL to the license for the resource.static java.lang.StringCAPABILITY_SINGLETON_DIRECTIVEThe capability directive identifying if the resource is a singleton.static java.lang.StringCAPABILITY_TAGS_ATTRIBUTEThe attribute value that contains tags for the resource.static java.lang.StringCAPABILITY_TYPE_ATTRIBUTEThe capability attribute identifying the resource type.static java.lang.StringCAPABILITY_VERSION_ATTRIBUTEThe capability attribute identifying theVersionof the resource if one is specified or0.0.0if not specified.static java.lang.StringCLASSIFIER_JAVADOCThe attribute value identifying the resourceclassifieras an archive containing the javadoc in the same directory layout as the resource.static java.lang.StringCLASSIFIER_SOURCESThe attribute value identifying the resourceclassifieras an archive containing the source code in the same directory layout as the resource.static java.lang.StringIDENTITY_NAMESPACENamespace name for identity capabilities and requirements.static java.lang.StringREQUIREMENT_CLASSIFIER_DIRECTIVEThe requirement directive that classifies the relationship with another resource.static java.lang.StringTYPE_BUNDLEThe attribute value identifying the resourcetypeas an OSGi bundle.static java.lang.StringTYPE_FRAGMENTThe attribute value identifying the resourcetypeas an OSGi fragment.static java.lang.StringTYPE_UNKNOWNThe attribute value identifying the resourcetypeas unknown.-
Fields inherited from class org.osgi.resource.Namespace
CAPABILITY_EFFECTIVE_DIRECTIVE, CAPABILITY_USES_DIRECTIVE, CARDINALITY_MULTIPLE, CARDINALITY_SINGLE, EFFECTIVE_ACTIVE, EFFECTIVE_RESOLVE, REQUIREMENT_CARDINALITY_DIRECTIVE, REQUIREMENT_EFFECTIVE_DIRECTIVE, REQUIREMENT_FILTER_DIRECTIVE, REQUIREMENT_RESOLUTION_DIRECTIVE, RESOLUTION_MANDATORY, RESOLUTION_OPTIONAL
-
-
-
-
Field Detail
-
IDENTITY_NAMESPACE
public static final java.lang.String IDENTITY_NAMESPACE
Namespace name for identity capabilities and requirements.Also, the capability attribute used to specify the symbolic name of the resource.
- See Also:
- Constant Field Values
-
CAPABILITY_SINGLETON_DIRECTIVE
public static final java.lang.String CAPABILITY_SINGLETON_DIRECTIVE
The capability directive identifying if the resource is a singleton. AStringvalue of "true" indicates the resource is a singleton; any other value ornullindicates the resource is not a singleton.- See Also:
- Constant Field Values
-
CAPABILITY_VERSION_ATTRIBUTE
public static final java.lang.String CAPABILITY_VERSION_ATTRIBUTE
The capability attribute identifying theVersionof the resource if one is specified or0.0.0if not specified. The value of this attribute must be of typeVersion.- See Also:
- Constant Field Values
-
CAPABILITY_TYPE_ATTRIBUTE
public static final java.lang.String CAPABILITY_TYPE_ATTRIBUTE
The capability attribute identifying the resource type. If the resource has no type then the valueunknownmust be used for the attribute.- See Also:
TYPE_BUNDLE,TYPE_FRAGMENT,TYPE_UNKNOWN, Constant Field Values
-
TYPE_BUNDLE
public static final java.lang.String TYPE_BUNDLE
The attribute value identifying the resourcetypeas an OSGi bundle.- See Also:
CAPABILITY_TYPE_ATTRIBUTE, Constant Field Values
-
TYPE_FRAGMENT
public static final java.lang.String TYPE_FRAGMENT
The attribute value identifying the resourcetypeas an OSGi fragment.- See Also:
CAPABILITY_TYPE_ATTRIBUTE, Constant Field Values
-
TYPE_UNKNOWN
public static final java.lang.String TYPE_UNKNOWN
The attribute value identifying the resourcetypeas unknown.- See Also:
CAPABILITY_TYPE_ATTRIBUTE, Constant Field Values
-
CAPABILITY_TAGS_ATTRIBUTE
public static final java.lang.String CAPABILITY_TAGS_ATTRIBUTE
The attribute value that contains tags for the resource. A tag is used to identify an aspect of the resource that is not otherwise expressed by the capabilities of the resource. The value of this attribute must be of typeList<String>.- Since:
- 1.2
- See Also:
- Constant Field Values
-
CAPABILITY_COPYRIGHT_ATTRIBUTE
public static final java.lang.String CAPABILITY_COPYRIGHT_ATTRIBUTE
The capability attribute that contains a human readable copyright notice for the resource. See theBundle-Copyrightmanifest header.- See Also:
- Constant Field Values
-
CAPABILITY_DESCRIPTION_ATTRIBUTE
public static final java.lang.String CAPABILITY_DESCRIPTION_ATTRIBUTE
The capability attribute that contains a human readable description for the resource. See theBundle-Descriptionmanifest header.- See Also:
- Constant Field Values
-
CAPABILITY_DOCUMENTATION_ATTRIBUTE
public static final java.lang.String CAPABILITY_DOCUMENTATION_ATTRIBUTE
The capability attribute that contains the URL to documentation for the resource. See theBundle-DocURLmanifest header.- See Also:
- Constant Field Values
-
CAPABILITY_LICENSE_ATTRIBUTE
public static final java.lang.String CAPABILITY_LICENSE_ATTRIBUTE
The capability attribute that contains the URL to the license for the resource. See thenameportion of theBundle-Licensemanifest header.- See Also:
- Constant Field Values
-
REQUIREMENT_CLASSIFIER_DIRECTIVE
public static final java.lang.String REQUIREMENT_CLASSIFIER_DIRECTIVE
The requirement directive that classifies the relationship with another resource.
-
CLASSIFIER_SOURCES
public static final java.lang.String CLASSIFIER_SOURCES
The attribute value identifying the resourceclassifieras an archive containing the source code in the same directory layout as the resource.
-
CLASSIFIER_JAVADOC
public static final java.lang.String CLASSIFIER_JAVADOC
The attribute value identifying the resourceclassifieras an archive containing the javadoc in the same directory layout as the resource.
-
-