com.springsource.util.osgi.manifest.internal
Class BaseImported
java.lang.Object
com.springsource.util.osgi.manifest.internal.BaseParameterised
com.springsource.util.osgi.manifest.internal.BaseCompoundHeaderEntry
com.springsource.util.osgi.manifest.internal.BaseImported
- All Implemented Interfaces:
- Imported, Parameterised, Parseable
- Direct Known Subclasses:
- StandardImportedBundle, StandardImportedLibrary, StandardImportedPackage
abstract class BaseImported
- extends BaseCompoundHeaderEntry
- implements Imported
Concurrent Semantics
Not thread-safe.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BaseImported
BaseImported(HeaderParser parser,
java.lang.String name)
getResolution
public Resolution getResolution()
- Returns the value of the import's
resolution
directive. If no such directive is specified the
default value of Resolution.MANDATORY
is returned.
- Specified by:
getResolution
in interface Imported
- Returns:
- the value of the import's resolution directive.
getVersion
public VersionRange getVersion()
- Returns the version range of the import. If no
version
attribute is specified
the default range of [0, infinity) is returned.
- Specified by:
getVersion
in interface Imported
- Returns:
- the import's version range
setResolution
public void setResolution(Resolution resolution)
- Sets the value of the import's
resolution
directive.
- Specified by:
setResolution
in interface Imported
- Parameters:
resolution
- The import's resolution directive
setVersion
public void setVersion(VersionRange versionRange)
- Sets the version range of the import.
- Specified by:
setVersion
in interface Imported
- Parameters:
versionRange
- the import's version range.