|
||||||||||
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(java.lang.String category)
|
void |
addRequire(Requirement req)
|
boolean |
equals(java.lang.Object o)
|
Capability[] |
getCapabilities()
Retrieve the capabilities |
java.lang.String[] |
getCategories()
Retrieve this resource categories |
java.lang.String |
getId()
Shortcut for {{getProperties().get(ID)}} |
java.lang.String |
getPresentationName()
Shortcut for {{getProperties().get(PRESENTATION_NAME)}} |
java.util.Map |
getProperties()
Get all resource properties |
Repository |
getRepository()
|
Requirement[] |
getRequirements()
Retrieve the requirements |
java.lang.Long |
getSize()
Shortcut for {{getProperties().get(SIZE)}} |
java.lang.String |
getSymbolicName()
Shortcut for {{getProperties().get(SYMBOLIC_NAME)}} |
java.lang.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. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Default setter method when setting parsed data from the XML file. |
void |
put(java.lang.String key,
java.lang.String value,
java.lang.String type)
|
void |
setRepository(Repository repository)
|
java.lang.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(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Repository getRepository()
public void setRepository(Repository repository)
public java.util.Map getProperties()
Resource
getProperties
in interface Resource
public java.lang.String getPresentationName()
Resource
getPresentationName
in interface Resource
public java.lang.String getSymbolicName()
Resource
getSymbolicName
in interface Resource
public java.lang.String getId()
Resource
getId
in interface Resource
public org.osgi.framework.Version getVersion()
Resource
getVersion
in interface Resource
public java.lang.String getURI()
Resource
getURI
in interface Resource
public java.lang.Long getSize()
Resource
getSize
in interface Resource
public Requirement[] getRequirements()
Resource
getRequirements
in interface Resource
public void addRequire(Requirement req)
public Capability[] getCapabilities()
Resource
getCapabilities
in interface Resource
public void addCapability(Capability cap)
public java.lang.String[] getCategories()
Resource
getCategories
in interface Resource
public void addCategory(java.lang.String category)
public boolean isLocal()
Resource
isLocal
in interface Resource
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
public void put(java.lang.String key, java.lang.String value, java.lang.String type)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |