org.eclipse.osgi.internal.resolver
Class ResolverErrorImpl
java.lang.Object
org.eclipse.osgi.internal.resolver.ResolverErrorImpl
- All Implemented Interfaces:
- ResolverError
public final class ResolverErrorImpl
- extends java.lang.Object
- implements ResolverError
| Fields inherited from interface org.eclipse.osgi.service.resolver.ResolverError |
DISABLED_BUNDLE, EXPORT_PACKAGE_PERMISSION, FRAGMENT_BUNDLE_PERMISSION, FRAGMENT_CONFLICT, HOST_BUNDLE_PERMISSION, IMPORT_PACKAGE_PERMISSION, IMPORT_PACKAGE_USES_CONFLICT, INVALID_NATIVECODE_PATHS, MISSING_EXECUTION_ENVIRONMENT, MISSING_FRAGMENT_HOST, MISSING_GENERIC_CAPABILITY, MISSING_IMPORT_PACKAGE, MISSING_REQUIRE_BUNDLE, NO_NATIVECODE_MATCH, PLATFORM_FILTER, PROVIDE_BUNDLE_PERMISSION, REQUIRE_BUNDLE_PERMISSION, REQUIRE_BUNDLE_USES_CONFLICT, SINGLETON_SELECTION |
|
Method Summary |
BundleDescription |
getBundle()
Returns the bundle which this ResolverError is for |
java.lang.String |
getData()
Returns non-translatable data associated with this ResolverError. |
int |
getType()
Returns the type of ResolverError this is |
VersionConstraint |
getUnsatisfiedConstraint()
Returns the unsatisfied constraint if this ResolverError occurred
because of an unsatisfied constraint; otherwise null
is returned. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResolverErrorImpl
public ResolverErrorImpl(BundleDescriptionImpl bundle,
int type,
java.lang.String data,
VersionConstraint unsatisfied)
getBundle
public BundleDescription getBundle()
- Description copied from interface:
ResolverError
- Returns the bundle which this ResolverError is for
- Specified by:
getBundle in interface ResolverError
- Returns:
- the bundle which this ResolverError is for
getType
public int getType()
- Description copied from interface:
ResolverError
- Returns the type of ResolverError this is
- Specified by:
getType in interface ResolverError
- Returns:
- the type of ResolverError this is
getData
public java.lang.String getData()
- Description copied from interface:
ResolverError
- Returns non-translatable data associated with this ResolverError.
For example, the data for a ResolverError of type MISSING_IMPORT_PACKAGE
could be the Import-Package manifest statement which did not resolve.
- Specified by:
getData in interface ResolverError
- Returns:
- non-translatable data associated with this ResolverError
getUnsatisfiedConstraint
public VersionConstraint getUnsatisfiedConstraint()
- Description copied from interface:
ResolverError
- Returns the unsatisfied constraint if this ResolverError occurred
because of an unsatisfied constraint; otherwise
null
is returned.
- Specified by:
getUnsatisfiedConstraint in interface ResolverError
- Returns:
- the unsatisfied constraint or
null.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.