org.eclipse.osgi.internal.resolver
Class NativeCodeDescriptionImpl

java.lang.Object
  extended by org.eclipse.osgi.internal.resolver.NativeCodeDescriptionImpl
All Implemented Interfaces:
java.lang.Comparable, BaseDescription, NativeCodeDescription

public class NativeCodeDescriptionImpl
extends java.lang.Object
implements NativeCodeDescription


Field Summary
protected  java.lang.Object monitor
           
 
Constructor Summary
NativeCodeDescriptionImpl()
           
 
Method Summary
 int compareTo(java.lang.Object other)
          Native code descriptions are sorted with 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 getName()
          Returns the name.
 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.
 BundleDescription getSupplier()
          Returns the bundle which supplies this base description
 Version getVersion()
          Returns the version.
 boolean hasInvalidNativePaths()
          Indicates if this native code description has invalid native code paths.
protected  void setName(java.lang.String name)
           
protected  void setVersion(Version version)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.osgi.service.resolver.BaseDescription
getName, getVersion
 

Field Detail

monitor

protected final java.lang.Object monitor
Constructor Detail

NativeCodeDescriptionImpl

public NativeCodeDescriptionImpl()
Method Detail

getFilter

public Filter getFilter()
Description copied from interface: NativeCodeDescription
Returns the selection filter used to select the native code.

Specified by:
getFilter in interface NativeCodeDescription
Returns:
the selection filter used to select the native code.

getLanguages

public java.lang.String[] getLanguages()
Description copied from interface: NativeCodeDescription
Returns the languages supported by the native code.

Specified by:
getLanguages in interface NativeCodeDescription
Returns:
the languages supported by the native code. An empty array is returned if all languages are supported.

getNativePaths

public java.lang.String[] getNativePaths()
Description copied from interface: NativeCodeDescription
Returns the paths to the native code libraries.

Specified by:
getNativePaths in interface NativeCodeDescription
Returns:
the paths to the native code libraries.

getOSNames

public java.lang.String[] getOSNames()
Description copied from interface: NativeCodeDescription
Returns the operating system names supported by the native code.

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

getOSVersions

public VersionRange[] getOSVersions()
Description copied from interface: NativeCodeDescription
Returns the operating system version ranges supported by the native code.

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

getProcessors

public java.lang.String[] getProcessors()
Description copied from interface: NativeCodeDescription
Returns the processors supported by the native code.

Specified by:
getProcessors in interface NativeCodeDescription
Returns:
the processors supported by the native code. An empty array is returned if no processors are supported.

getSupplier

public BundleDescription getSupplier()
Description copied from interface: BaseDescription
Returns the bundle which supplies this base description

Specified by:
getSupplier in interface BaseDescription
Returns:
the bundle which supplies this base description

compareTo

public int compareTo(java.lang.Object other)
Description copied from interface: NativeCodeDescription
Native code descriptions are sorted with the following preferences:

Specified by:
compareTo in interface java.lang.Comparable
Specified by:
compareTo in interface NativeCodeDescription
Parameters:
other - the native code description to be compared
Returns:
a negative integer, zero, or a positive integer as this natve code description is less than, equal to, or greater than the specified object.

hasInvalidNativePaths

public boolean hasInvalidNativePaths()
Description copied from interface: NativeCodeDescription
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.

Specified by:
hasInvalidNativePaths in interface NativeCodeDescription
Returns:
true if the native code paths are invalid; otherwise false is returned.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Description copied from interface: BaseDescription
Returns the name.

Specified by:
getName in interface BaseDescription
Returns:
the name

getVersion

public Version getVersion()
Description copied from interface: BaseDescription
Returns the version.

Specified by:
getVersion in interface BaseDescription
Returns:
the version

setName

protected void setName(java.lang.String name)

setVersion

protected void setVersion(Version version)


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.