|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.springsource.util.osgi.manifest.internal.BaseParameterised
com.springsource.util.osgi.manifest.internal.BaseCompoundHeaderEntry
com.springsource.util.osgi.manifest.internal.StandardRequiredBundle
public class StandardRequiredBundle
Concurrent Semantics
Not thread-safe.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.springsource.util.osgi.manifest.RequiredBundle |
---|
RequiredBundle.Visibility |
Field Summary |
---|
Fields inherited from class com.springsource.util.osgi.manifest.internal.BaseParameterised |
---|
name |
Constructor Summary | |
---|---|
StandardRequiredBundle(HeaderParser parser,
java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
getBundleSymbolicName()
Returns the symbolic name of the bundle that is required, never null . |
VersionRange |
getBundleVersion()
Returns the value of the header's bundle-version attribute. |
Resolution |
getResolution()
Returns the value of the entry's resolution directive. |
RequiredBundle.Visibility |
getVisibility()
Returns the value of the entry's visibility directive. |
(package private) HeaderDeclaration |
parse(HeaderParser parser,
java.lang.String parseString)
|
void |
setBundleSymbolicName(java.lang.String bundleSymbolicName)
Sets the symbolic name of the bundle that is required. |
void |
setBundleVersion(VersionRange versionRange)
Sets the value of the header's bundle-version directive. |
void |
setResolution(Resolution resolution)
Sets the value of the resolution directive. |
void |
setVisibility(RequiredBundle.Visibility visibility)
Sets the value of the visibility directive. |
Methods inherited from class com.springsource.util.osgi.manifest.internal.BaseParameterised |
---|
equals, getAttributes, getDirectives, hashCode, 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 |
---|
StandardRequiredBundle(HeaderParser parser, java.lang.String name)
Method Detail |
---|
public java.lang.String getBundleSymbolicName()
RequiredBundle
null
.
getBundleSymbolicName
in interface RequiredBundle
public Resolution getResolution()
resolution
directive. If no such directive is specified, the
default value of Resolution.MANDATORY
is returned.
getResolution
in interface RequiredBundle
public RequiredBundle.Visibility getVisibility()
visibility
directive. If no such directive is specified, the
default value of RequiredBundle.Visibility.PRIVATE
is returned.
getVisibility
in interface RequiredBundle
public void setBundleSymbolicName(java.lang.String bundleSymbolicName)
setBundleSymbolicName
in interface RequiredBundle
bundleSymbolicName
- the required bundle's symbolic namepublic void setResolution(Resolution resolution)
resolution
directive. If null
is given, sets the value to
Resolution.MANDATORY
.
setResolution
in interface RequiredBundle
resolution
- The resolution directivepublic void setVisibility(RequiredBundle.Visibility visibility)
visibility
directive. If null
is given, sets the value to
RequiredBundle.Visibility.PRIVATE
.
setVisibility
in interface RequiredBundle
visibility
- The value of the visibility directive.HeaderDeclaration parse(HeaderParser parser, java.lang.String parseString)
parse
in class BaseParameterised
public VersionRange getBundleVersion()
bundle-version
attribute. If no such attribute is specified, returns the
default version range of [0, infinity).
getBundleVersion
in interface RequiredBundle
bundle-version
attribute.public void setBundleVersion(VersionRange versionRange)
bundle-version
directive.
setBundleVersion
in interface RequiredBundle
versionRange
- the value for the bundle-version
directive.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |