org.knopflerfish.framework.ImportPkg Class Reference

List of all members.


Detailed Description

Data structure for import package definitions.

Author:
Jan Stein

Definition at line 48 of file ImportPkg.java.


Public Member Functions

boolean okPackageVersion (Version ver)
 Check if version fullfills import package constraints.
String pkgString ()
 String describing package name and specification version, if specified.
String toString ()
 String describing this object.

Package Functions

 ImportPkg (String name, Map tokens, BundlePackages b)
 Create an import package entry.
 ImportPkg (ImportPkg ip, String name)
 Create an import package entry with a new name from an import template.
 ImportPkg (ImportPkg ip, BundlePackages bpkgs)
 Creates an import package entry with a new host bundle.
 ImportPkg (ExportPkg p)
 Create an import package entry.
synchronized void attachPkg (Pkg p)
 Attach this to a Pkg object which indicate that it is a valid importer.
synchronized void detachPkg ()
 Detach this from a Pkg object which indicate that it is no longer valid.
boolean checkMandatory (List mandatory)
 Check that we have all mandatory attributes.
boolean overlap (ImportPkg ip)
 Check that we completly overlap specifed ImportPkg.

Member Function Documentation

boolean org.knopflerfish.framework.ImportPkg.okPackageVersion ( Version  ver  ) 

Check if version fullfills import package constraints.

Parameters:
ver Version to compare to.
Returns:
Return 0 if equals, negative if this object is less than obj and positive if this object is larger then obj.

Definition at line 179 of file ImportPkg.java.

References org.knopflerfish.framework.VersionRange.withinRange().

boolean org.knopflerfish.framework.ImportPkg.checkMandatory ( List  mandatory  )  [package]

Check that we have all mandatory attributes.

Parameters:
mandatory List of mandatory attribute.
Returns:
Return true if we have all mandatory attributes, otherwise false.

Definition at line 190 of file ImportPkg.java.

References org.knopflerfish.framework.VersionRange.isSpecified().

boolean org.knopflerfish.framework.ImportPkg.overlap ( ImportPkg  ip  )  [package]

Check that we completly overlap specifed ImportPkg.

Parameters:
ip ImportPkg to check.
Returns:
True if we overlap, otherwise false.

Definition at line 221 of file ImportPkg.java.

References org.knopflerfish.framework.ImportPkg.attributes, org.knopflerfish.framework.ImportPkg.bundleRange, org.knopflerfish.framework.ImportPkg.bundleSymbolicName, org.knopflerfish.framework.ImportPkg.packageRange, org.knopflerfish.framework.ImportPkg.resolution, and org.knopflerfish.framework.VersionRange.withinRange().

Referenced by org.knopflerfish.framework.BundlePackages.attachFragment().

String org.knopflerfish.framework.ImportPkg.pkgString (  ) 

String describing package name and specification version, if specified.

Returns:
String.

Definition at line 252 of file ImportPkg.java.

References org.knopflerfish.framework.VersionRange.isSpecified().

Referenced by org.knopflerfish.framework.ImportPkg.toString(), and org.knopflerfish.framework.Packages.unregisterPackages().

String org.knopflerfish.framework.ImportPkg.toString (  ) 

String describing this object.

Returns:
String.

Definition at line 267 of file ImportPkg.java.

References org.knopflerfish.framework.BundlePackages.bundle, and org.knopflerfish.framework.ImportPkg.pkgString().


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:19 2010 for OpenMobileIS by  doxygen 1.5.4