org.eclipse.osgi.internal.resolver
Class NativeCodeDescriptionImpl

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

public class NativeCodeDescriptionImpl
extends BaseDescriptionImpl
implements NativeCodeDescription


Field Summary
 
Fields inherited from class org.eclipse.osgi.internal.resolver.BaseDescriptionImpl
monitor
 
Constructor Summary
NativeCodeDescriptionImpl()
           
 
Method Summary
 int compareTo(NativeCodeDescription otherDesc)
          Native code descriptions are sorted with the following preferences: The minimum version of the os version ranges The language
 java.util.Map<java.lang.String,java.lang.Object> getDeclaredAttributes()
          Returns the attributes declared with the description.
 java.util.Map<java.lang.String,java.lang.String> getDeclaredDirectives()
          Returns the directives declared with the description.
 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.
 BundleDescription getSupplier()
          Returns the bundle which supplies this base description
 boolean hasInvalidNativePaths()
          Indicates if this native code description has invalid native code paths.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.osgi.internal.resolver.BaseDescriptionImpl
getCapability, getFragmentDeclaration, getName, getVersion, setName, setVersion
 
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
getCapability, getName, getVersion
 

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(NativeCodeDescription otherDesc)
Description copied from interface: NativeCodeDescription
Native code descriptions are sorted with the following preferences:

Specified by:
compareTo in interface java.lang.Comparable<NativeCodeDescription>
Specified by:
compareTo in interface NativeCodeDescription
Parameters:
otherDesc - 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

getDeclaredDirectives

public java.util.Map<java.lang.String,java.lang.String> getDeclaredDirectives()
Description copied from interface: BaseDescription
Returns the directives declared with the description. This will return all known directives for the type of description. The set of directives differs for each description type.

Specified by:
getDeclaredDirectives in interface BaseDescription
Returns:
the known directives declared with the description

getDeclaredAttributes

public java.util.Map<java.lang.String,java.lang.Object> getDeclaredAttributes()
Description copied from interface: BaseDescription
Returns the attributes declared with the description. This will return all known attributes for the type of description. The set of attributes differs for each description type.

Specified by:
getDeclaredAttributes in interface BaseDescription
Returns:
the attributes declared with the description


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