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

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
              extended by 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.


Field Summary
private static java.lang.String SHARING_CLONE
           
private static java.lang.String SHARING_DIRECTIVE
           
private static java.lang.String SHARING_SHARE
           
 
Fields inherited from class com.springsource.util.osgi.manifest.internal.BaseParameterised
name
 
Constructor Summary
StandardImportedLibrary(HeaderParser parser, java.lang.String name)
           
 
Method Summary
 java.lang.String getLibrarySymbolicName()
          Returns the symbolic name of the library that is imported, never null.
 Sharing getSharing()
          Returns the value of the import's sharing directive.
(package private)  HeaderDeclaration parse(HeaderParser parser, java.lang.String parseString)
          
 void setLibrarySymbolicName(java.lang.String librarySymbolicName)
          Sets the symbolic name of the library that is imported.
 void setSharing(Sharing sharing)
          Sets the value of the import's sharing directive.
 
Methods inherited from class com.springsource.util.osgi.manifest.internal.BaseImported
getResolution, getVersion, setResolution, setVersion
 
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.Imported
getResolution, getVersion, setResolution, setVersion
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parameterised
getAttributes, getDirectives
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Field Detail

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
Constructor Detail

StandardImportedLibrary

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

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