org.eclipse.osgi.internal.resolver
Class GenericDescriptionImpl

java.lang.Object
  extended by org.eclipse.osgi.internal.resolver.BaseDescriptionImpl
      extended by org.eclipse.osgi.internal.resolver.GenericDescriptionImpl
All Implemented Interfaces:
BaseDescription, GenericDescription

public class GenericDescriptionImpl
extends BaseDescriptionImpl
implements GenericDescription


Field Summary
 
Fields inherited from class org.eclipse.osgi.internal.resolver.BaseDescriptionImpl
monitor
 
Fields inherited from interface org.eclipse.osgi.service.resolver.GenericDescription
DEFAULT_TYPE
 
Constructor Summary
GenericDescriptionImpl()
           
GenericDescriptionImpl(BundleDescription host, GenericDescription fragmentDeclaration)
           
 
Method Summary
 Dictionary<String,Object> getAttributes()
          Returns the arbitrary attributes for this description
 Map<String,Object> getDeclaredAttributes()
          Returns the attributes declared with the description.
 Map<String,String> getDeclaredDirectives()
          Returns the directives declared with the description.
 BaseDescription getFragmentDeclaration()
           
 String getName()
          Deprecated.  
 BundleDescription getSupplier()
          Returns the bundle which supplies this base description
 String getType()
          Returns the type of generic description capability
 Version getVersion()
          Deprecated.  
 String toString()
           
 
Methods inherited from class org.eclipse.osgi.internal.resolver.BaseDescriptionImpl
getCapability, getUserObject, setName, setUserObject, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.osgi.service.resolver.BaseDescription
getCapability, getUserObject, setUserObject
 

Constructor Detail

GenericDescriptionImpl

public GenericDescriptionImpl()

GenericDescriptionImpl

public GenericDescriptionImpl(BundleDescription host,
                              GenericDescription fragmentDeclaration)
Method Detail

getAttributes

public Dictionary<String,Object> getAttributes()
Description copied from interface: GenericDescription
Returns the arbitrary attributes for this description

Specified by:
getAttributes in interface GenericDescription
Returns:
the arbitrary attributes for this description

getSupplier

public BundleDescription getSupplier()
Description copied from interface: BaseDescription
Returns the bundle which supplies this base description

Specified by:
getSupplier in interface BaseDescription
Returns:
the bundle which supplies this base description

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()
Deprecated. 

Description copied from interface: BaseDescription
Returns the name.

Specified by:
getName in interface BaseDescription
Specified by:
getName in interface GenericDescription
Overrides:
getName in class BaseDescriptionImpl
Returns:
the name

getType

public String getType()
Description copied from interface: GenericDescription
Returns the type of generic description capability

Specified by:
getType in interface GenericDescription
Returns:
the type of generic description capability

getVersion

public Version getVersion()
Deprecated. 

Description copied from interface: BaseDescription
Returns the version.

Specified by:
getVersion in interface BaseDescription
Specified by:
getVersion in interface GenericDescription
Overrides:
getVersion in class BaseDescriptionImpl
Returns:
the version

getDeclaredDirectives

public Map<String,String> getDeclaredDirectives()
Description copied from interface: BaseDescription
Returns the directives declared with the description. This will return all known directives for the type of description. The set of directives differs for each description type.

Specified by:
getDeclaredDirectives in interface BaseDescription
Returns:
the known directives declared with the description

getDeclaredAttributes

public Map<String,Object> getDeclaredAttributes()
Description copied from interface: BaseDescription
Returns the attributes declared with the description. This will return all known attributes for the type of description. The set of attributes differs for each description type.

Specified by:
getDeclaredAttributes in interface BaseDescription
Returns:
the attributes declared with the description

getFragmentDeclaration

public BaseDescription getFragmentDeclaration()
Overrides:
getFragmentDeclaration in class BaseDescriptionImpl


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.