com.springsource.util.osgi.manifest.internal
Class StandardImportedLibrary
java.lang.Object
com.springsource.util.osgi.manifest.internal.BaseParameterised
com.springsource.util.osgi.manifest.internal.BaseCompoundHeaderEntry
com.springsource.util.osgi.manifest.internal.BaseImported
com.springsource.util.osgi.manifest.internal.StandardImportedLibrary
- All Implemented Interfaces:
- Imported, ImportedLibrary, Parameterised, Parseable
public class StandardImportedLibrary
- extends BaseImported
- implements ImportedLibrary
Concurrent Semantics
Not thread-safe.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SHARING_SHARE
private static final java.lang.String SHARING_SHARE
- See Also:
- Constant Field Values
SHARING_CLONE
private static final java.lang.String SHARING_CLONE
- See Also:
- Constant Field Values
SHARING_DIRECTIVE
private static final java.lang.String SHARING_DIRECTIVE
- See Also:
- Constant Field Values
StandardImportedLibrary
StandardImportedLibrary(HeaderParser parser,
java.lang.String name)
parse
HeaderDeclaration parse(HeaderParser parser,
java.lang.String parseString)
-
- Specified by:
parse
in class BaseParameterised
getLibrarySymbolicName
public java.lang.String getLibrarySymbolicName()
- Returns the symbolic name of the library that is imported, never
null
.
- Specified by:
getLibrarySymbolicName
in interface ImportedLibrary
- Returns:
- the imported library's symbolic name.
setLibrarySymbolicName
public void setLibrarySymbolicName(java.lang.String librarySymbolicName)
- Sets the symbolic name of the library that is imported.
- Specified by:
setLibrarySymbolicName
in interface ImportedLibrary
- Parameters:
librarySymbolicName
- The imported library's symbolic name
getSharing
public Sharing getSharing()
- Returns the value of the import's
sharing
directive. If no such directive is specified the
default value of Sharing.AUTOMATIC
is returned.
- Specified by:
getSharing
in interface ImportedLibrary
- Returns:
- the value of the import's sharing directive.
setSharing
public void setSharing(Sharing sharing)
- Sets the value of the import's
sharing
directive.
- Specified by:
setSharing
in interface ImportedLibrary
- Parameters:
sharing
- the value of the import's sharing directive