com.springsource.util.osgi.manifest.internal
Class BaseImported

java.lang.Object
  extended by com.springsource.util.osgi.manifest.internal.BaseParameterised
      extended by com.springsource.util.osgi.manifest.internal.BaseCompoundHeaderEntry
          extended by 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.


Field Summary
 
Fields inherited from class com.springsource.util.osgi.manifest.internal.BaseParameterised
name
 
Constructor Summary
BaseImported(HeaderParser parser, java.lang.String name)
           
 
Method Summary
 Resolution getResolution()
          Returns the value of the import's resolution directive.
 VersionRange getVersion()
          Returns the version range of the import.
 void setResolution(Resolution resolution)
          Sets the value of the import's resolution directive.
 void setVersion(VersionRange versionRange)
          Sets the version range of the import.
 
Methods inherited from class com.springsource.util.osgi.manifest.internal.BaseParameterised
equals, getAttributes, getDirectives, hashCode, parse, resetFromParseString, toParseString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parameterised
getAttributes, getDirectives
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Constructor Detail

BaseImported

BaseImported(HeaderParser parser,
             java.lang.String name)
Method Detail

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.