org.apache.felix.bundlerepository
Class ResourceImpl

java.lang.Object
  extended by org.apache.felix.bundlerepository.ResourceImpl
All Implemented Interfaces:
org.osgi.service.obr.Resource
Direct Known Subclasses:
LocalRepositoryImpl.LocalResourceImpl

public class ResourceImpl
extends java.lang.Object
implements org.osgi.service.obr.Resource


Field Summary
 
Fields inherited from interface org.osgi.service.obr.Resource
COPYRIGHT, DESCRIPTION, DOCUMENTATION_URL, ID, KEYS, LICENSE_URL, PRESENTATION_NAME, SIZE, SOURCE_URL, SYMBOLIC_NAME, URL, VERSION
 
Constructor Summary
ResourceImpl()
           
ResourceImpl(ResourceImpl resource)
           
 
Method Summary
protected  void addCapability(org.osgi.service.obr.Capability cap)
           
protected  void addCategory(CategoryImpl cat)
           
protected  void addRequire(org.osgi.service.obr.Requirement req)
           
 boolean equals(java.lang.Object o)
           
 org.osgi.service.obr.Capability[] getCapabilities()
           
 java.lang.String[] getCategories()
           
 java.lang.String getId()
           
 java.lang.String getPresentationName()
           
 java.util.Map getProperties()
           
 org.osgi.service.obr.Repository getRepository()
           
 org.osgi.service.obr.Requirement[] getRequirements()
           
 java.lang.String getSymbolicName()
           
 java.net.URL getURL()
           
 org.osgi.framework.Version getVersion()
           
 int hashCode()
           
protected  java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Default setter method when setting parsed data from the XML file.
protected  void setRepository(org.osgi.service.obr.Repository repo)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceImpl

public ResourceImpl()

ResourceImpl

public ResourceImpl(ResourceImpl resource)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getProperties

public java.util.Map getProperties()
Specified by:
getProperties in interface org.osgi.service.obr.Resource

getPresentationName

public java.lang.String getPresentationName()
Specified by:
getPresentationName in interface org.osgi.service.obr.Resource

getSymbolicName

public java.lang.String getSymbolicName()
Specified by:
getSymbolicName in interface org.osgi.service.obr.Resource

getId

public java.lang.String getId()
Specified by:
getId in interface org.osgi.service.obr.Resource

getVersion

public org.osgi.framework.Version getVersion()
Specified by:
getVersion in interface org.osgi.service.obr.Resource

getURL

public java.net.URL getURL()
Specified by:
getURL in interface org.osgi.service.obr.Resource

getRequirements

public org.osgi.service.obr.Requirement[] getRequirements()
Specified by:
getRequirements in interface org.osgi.service.obr.Resource

addRequire

protected void addRequire(org.osgi.service.obr.Requirement req)

getCapabilities

public org.osgi.service.obr.Capability[] getCapabilities()
Specified by:
getCapabilities in interface org.osgi.service.obr.Resource

addCapability

protected void addCapability(org.osgi.service.obr.Capability cap)

getCategories

public java.lang.String[] getCategories()
Specified by:
getCategories in interface org.osgi.service.obr.Resource

addCategory

protected void addCategory(CategoryImpl cat)

getRepository

public org.osgi.service.obr.Repository getRepository()
Specified by:
getRepository in interface org.osgi.service.obr.Resource

setRepository

protected void setRepository(org.osgi.service.obr.Repository repo)

put

protected java.lang.Object put(java.lang.Object key,
                               java.lang.Object value)
Default setter method when setting parsed data from the XML file.