org.apache.felix.bundlerepository
Class ResourceImpl
java.lang.Object
org.apache.felix.bundlerepository.ResourceImpl
- All Implemented Interfaces:
- Resource
- Direct Known Subclasses:
- LocalRepositoryImpl.LocalResourceImpl
public class ResourceImpl
- extends Object
- implements 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 |
ResourceImpl
public ResourceImpl()
ResourceImpl
public ResourceImpl(ResourceImpl resource)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getProperties
public Map getProperties()
- Specified by:
getProperties
in interface Resource
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationName
in interface Resource
getSymbolicName
public String getSymbolicName()
- Specified by:
getSymbolicName
in interface Resource
getId
public String getId()
- Specified by:
getId
in interface Resource
getVersion
public Version getVersion()
- Specified by:
getVersion
in interface Resource
getURL
public URL getURL()
- Specified by:
getURL
in interface Resource
getRequirements
public Requirement[] getRequirements()
- Specified by:
getRequirements
in interface Resource
addRequire
protected void addRequire(Requirement req)
getCapabilities
public Capability[] getCapabilities()
- Specified by:
getCapabilities
in interface Resource
addCapability
protected void addCapability(Capability cap)
getCategories
public String[] getCategories()
- Specified by:
getCategories
in interface Resource
addCategory
protected void addCategory(CategoryImpl cat)
getRepository
public Repository getRepository()
- Specified by:
getRepository
in interface Resource
setRepository
protected void setRepository(Repository repo)
put
protected Object put(Object key,
Object value)
- Default setter method when setting parsed data from the XML file.
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.