|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.bundlerepository.impl.ResourceImpl
public class ResourceImpl
| Field Summary |
|---|
| Fields inherited from interface org.apache.felix.bundlerepository.Resource |
|---|
CATEGORY, COPYRIGHT, DESCRIPTION, DOCUMENTATION_URI, ID, JAVADOC_URI, LICENSE_URI, MANIFEST_VERSION, PRESENTATION_NAME, SIZE, SOURCE_URI, SYMBOLIC_NAME, URI, VERSION |
| Constructor Summary | |
|---|---|
ResourceImpl()
|
|
| Method Summary | |
|---|---|
void |
addCapability(Capability cap)
|
void |
addCategory(String category)
|
void |
addRequire(Requirement req)
|
boolean |
equals(Object o)
|
Capability[] |
getCapabilities()
Retrieve the capabilities |
String[] |
getCategories()
Retrieve this resource categories |
String |
getId()
Shortcut for {{getProperties().get(ID)}} |
String |
getPresentationName()
Shortcut for {{getProperties().get(PRESENTATION_NAME)}} |
Map |
getProperties()
Get all resource properties |
Repository |
getRepository()
|
Requirement[] |
getRequirements()
Retrieve the requirements |
Long |
getSize()
Shortcut for {{getProperties().get(SIZE)}} |
String |
getSymbolicName()
Shortcut for {{getProperties().get(SYMBOLIC_NAME)}} |
String |
getURI()
Shortcut for {{getProperties().get(URI)}} |
org.osgi.framework.Version |
getVersion()
Shortcut for {{getProperties().get(VERSION)}} |
int |
hashCode()
|
boolean |
isLocal()
Returns whether this resource is a local one or not. |
Object |
put(Object key,
Object value)
Default setter method when setting parsed data from the XML file. |
void |
put(String key,
String value,
String type)
|
void |
setRepository(Repository repository)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceImpl()
| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Repository getRepository()
public void setRepository(Repository repository)
public Map getProperties()
Resource
getProperties in interface Resourcepublic String getPresentationName()
Resource
getPresentationName in interface Resourcepublic String getSymbolicName()
Resource
getSymbolicName in interface Resourcepublic String getId()
Resource
getId in interface Resourcepublic org.osgi.framework.Version getVersion()
Resource
getVersion in interface Resourcepublic String getURI()
Resource
getURI in interface Resourcepublic Long getSize()
Resource
getSize in interface Resourcepublic Requirement[] getRequirements()
Resource
getRequirements in interface Resourcepublic void addRequire(Requirement req)
public Capability[] getCapabilities()
Resource
getCapabilities in interface Resourcepublic void addCapability(Capability cap)
public String[] getCategories()
Resource
getCategories in interface Resourcepublic void addCategory(String category)
public boolean isLocal()
Resource
isLocal in interface Resource
public Object put(Object key,
Object value)
public void put(String key,
String value,
String type)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||