org.apache.felix.bundlerepository
Class ResourceImpl
java.lang.Object
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
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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ResourceImpl
public ResourceImpl()
ResourceImpl
public ResourceImpl(ResourceImpl resource)
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.