org.eclipse.osgi.service.resolver
Interface NativeCodeDescription

All Superinterfaces:
BaseDescription, java.lang.Comparable

public interface NativeCodeDescription
extends BaseDescription, java.lang.Comparable

This class represents a native code description.

This interface is not intended to be implemented by clients. The StateObjectFactory should be used to construct instances.

Since:
3.4

Method Summary
 int compareTo(java.lang.Object other)
          Native code descriptions are sorted in by the following preferences The minimum version of the os version ranges The language
 Filter getFilter()
          Returns the selection filter used to select the native code.
 java.lang.String[] getLanguages()
          Returns the languages supported by the native code.
 java.lang.String[] getNativePaths()
          Returns the paths to the native code libraries.
 java.lang.String[] getOSNames()
          Returns the operating system names supported by the native code.
 VersionRange[] getOSVersions()
          Returns the operating system version ranges supported by the native code.
 java.lang.String[] getProcessors()
          Returns the processors supported by the native code.
 boolean hasInvalidNativePaths()
          Indicates if this native code description has invalid native code paths.
 
Methods inherited from interface org.eclipse.osgi.service.resolver.BaseDescription
getName, getSupplier, getVersion
 

Method Detail

getNativePaths

java.lang.String[] getNativePaths()
Returns the paths to the native code libraries.

Returns:
the paths to the native code libraries.

getProcessors

java.lang.String[] getProcessors()
Returns the processors supported by the native code.

Returns:
the processors supported by the native code. An empty array is returned if no processors are supported.

getOSNames

java.lang.String[] getOSNames()
Returns the operating system names supported by the native code.

Returns:
the operating system names supported by the native code. An empty array is returned if no operating systems are supported.

getOSVersions

VersionRange[] getOSVersions()
Returns the operating system version ranges supported by the native code.

Returns:
the operating system version ranges supported by the native code. An empty array is returned if all versions are supported.

getLanguages

java.lang.String[] getLanguages()
Returns the languages supported by the native code.

Returns:
the languages supported by the native code. An empty array is returned if all languages are supported.

getFilter

Filter getFilter()
Returns the selection filter used to select the native code.

Returns:
the selection filter used to select the native code.

compareTo

int compareTo(java.lang.Object other)
Native code descriptions are sorted in by the following preferences

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
other -
Returns:

hasInvalidNativePaths

boolean hasInvalidNativePaths()
Indicates if this native code description has invalid native code paths. Native code paths are invalid if they can not be found in the bundle content.

Returns:
true if the native code paths are invalid; otherwise false is returned.