net.sourceforge.osgi.deployment.maven.manifest
Class DeploymentPackageManifest

java.lang.Object
  extended by net.sourceforge.osgi.deployment.maven.manifest.OrderedManifest
      extended by net.sourceforge.osgi.deployment.maven.manifest.DeploymentPackageManifest

public class DeploymentPackageManifest
extends OrderedManifest

This class represents the manifest of a Deployment-Package. It creates the various headers using the IDeploymentPluginContext. The Deployment-Package manifest is an ordered manifest, because the order and empty lines are part of the semantics.

Author:
Siamak Haschemi, haschemi@informatik.hu-berlin.de

Field Summary
static java.lang.String BUNDLE_LOCALIZATION
          Manifest header (named "Bundle-Localization") identifying the base name of the bundle's localization entries.
static java.lang.String BUNDLE_SYMBOLICNAME
          Manifest header (named "Bundle-SymbolicName") identifying the bundle's symbolic name.
static java.lang.String BUNDLE_VERSION
          Manifest header (named "Bundle-Version") identifying the bundle's version.
static java.lang.String CREATED_AT
          Extra header in the manifest file.
static java.lang.String CREATED_BY
          Extra header in the manifest file.
static java.lang.String DP_CONTACTADDRESS
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_CONTENT_TYPE
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_COPYRIGHT
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_CUSTOMIZER
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_DESCRIPTION
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_DOCURL
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_FIXPACK
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_LICENSE
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_MANIFESTVERSION
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_NAME
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_RESOURCE_PROCESSOR
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_SHA1_DIGEST
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_SYMBOLICNAME
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_VENDOR
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String DP_VERSION
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.util.regex.Pattern PATH_NAME_PATTERN
          Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.
static java.lang.String TOOL
          Extra header in the manifest file.
static java.util.regex.Pattern UNIQUE_NAME_PATTERN
          Constant from the OSGi Platform Release 4, Version 4.1.
 
Fields inherited from class net.sourceforge.osgi.deployment.maven.manifest.OrderedManifest
CONTENT_TYPE, EMPTY_LINE, HEADER_PATTERN, MANIFEST_VERSION
 
Constructor Summary
DeploymentPackageManifest(IDeploymentPluginContext p_context)
           
 
Method Summary
static boolean isResourceId(java.lang.String p_resourceId)
          This method checks whether the given resourceId conforms to the OSGi Specification.
static boolean isUniqueName(java.lang.String p_symbolicName)
          This method checks whether the given symbolic name conforms to the OSGi Specification of a unique name.
static boolean isVersion(java.lang.String p_versionToCheck)
          This method checks whether the given version conforms to the OSGi Specification.
static boolean isVersionRange(java.lang.String p_versionRange)
          This method checks whether the given version range conforms to the OSGi Specification.
 
Methods inherited from class net.sourceforge.osgi.deployment.maven.manifest.OrderedManifest
add, add, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATED_BY

public static final java.lang.String CREATED_BY
Extra header in the manifest file.

See Also:
Constant Field Values

TOOL

public static final java.lang.String TOOL
Extra header in the manifest file.

See Also:
Constant Field Values

CREATED_AT

public static final java.lang.String CREATED_AT
Extra header in the manifest file.

See Also:
Constant Field Values

DP_MANIFESTVERSION

public static final java.lang.String DP_MANIFESTVERSION
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_CONTENT_TYPE

public static final java.lang.String DP_CONTENT_TYPE
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_SYMBOLICNAME

public static final java.lang.String DP_SYMBOLICNAME
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_VERSION

public static final java.lang.String DP_VERSION
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_COPYRIGHT

public static final java.lang.String DP_COPYRIGHT
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_CONTACTADDRESS

public static final java.lang.String DP_CONTACTADDRESS
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_DESCRIPTION

public static final java.lang.String DP_DESCRIPTION
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_DOCURL

public static final java.lang.String DP_DOCURL
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_VENDOR

public static final java.lang.String DP_VENDOR
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_LICENSE

public static final java.lang.String DP_LICENSE
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_FIXPACK

public static final java.lang.String DP_FIXPACK
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_CUSTOMIZER

public static final java.lang.String DP_CUSTOMIZER
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_NAME

public static final java.lang.String DP_NAME
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_SHA1_DIGEST

public static final java.lang.String DP_SHA1_DIGEST
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

DP_RESOURCE_PROCESSOR

public static final java.lang.String DP_RESOURCE_PROCESSOR
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.

See Also:
Constant Field Values

PATH_NAME_PATTERN

public static final java.util.regex.Pattern PATH_NAME_PATTERN
Constant from the Deployment Admin Specification in the OSGi Platform Release 4, Version 4.1.


UNIQUE_NAME_PATTERN

public static final java.util.regex.Pattern UNIQUE_NAME_PATTERN
Constant from the OSGi Platform Release 4, Version 4.1.


BUNDLE_VERSION

public static final java.lang.String BUNDLE_VERSION
Manifest header (named "Bundle-Version") identifying the bundle's version.

See Also:
Constant Field Values

BUNDLE_SYMBOLICNAME

public static final java.lang.String BUNDLE_SYMBOLICNAME
Manifest header (named "Bundle-SymbolicName") identifying the bundle's symbolic name.

See Also:
Constant Field Values

BUNDLE_LOCALIZATION

public static final java.lang.String BUNDLE_LOCALIZATION
Manifest header (named "Bundle-Localization") identifying the base name of the bundle's localization entries.

See Also:
Constant Field Values
Constructor Detail

DeploymentPackageManifest

public DeploymentPackageManifest(IDeploymentPluginContext p_context)
Parameters:
p_context - the context
Method Detail

isVersion

public static boolean isVersion(java.lang.String p_versionToCheck)
This method checks whether the given version conforms to the OSGi Specification.

Parameters:
p_versionToCheck - the version to check
Returns:
TRUE> if the version is valid, else FALSE

isVersionRange

public static final boolean isVersionRange(java.lang.String p_versionRange)
This method checks whether the given version range conforms to the OSGi Specification.

Parameters:
p_versionRange - the version range to check
Returns:
TRUE> if the version range is valid, else FALSE

isUniqueName

public static boolean isUniqueName(java.lang.String p_symbolicName)
This method checks whether the given symbolic name conforms to the OSGi Specification of a unique name.

Parameters:
p_symbolicName - the symbolic name to check
Returns:
TRUE> if the symbolic name is valid, else FALSE

isResourceId

public static boolean isResourceId(java.lang.String p_resourceId)
This method checks whether the given resourceId conforms to the OSGi Specification.

Parameters:
p_resourceId - the resourceId to check
Returns:
TRUE> if the resourceId is valid, else FALSE


Copyright © 2008 Humboldt University Berlin. All Rights Reserved.