org.apache.felix.bundlerepository
Class ResourceImpl

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

public class ResourceImpl
extends Object
implements 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(Capability cap)
           
protected  void addCategory(CategoryImpl cat)
           
protected  void addRequire(Requirement req)
           
 boolean equals(Object o)
           
 Capability[] getCapabilities()
           
 String[] getCategories()
           
 String getId()
           
 String getPresentationName()
           
 Map getProperties()
           
 Repository getRepository()
           
 Requirement[] getRequirements()
           
 String getSymbolicName()
           
 URL getURL()
           
 Version getVersion()
           
 int hashCode()
           
protected  Object put(Object key, Object value)
          Default setter method when setting parsed data from the XML file.
protected  void setRepository(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(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.