ResourceLocalResourceImplpublic class ResourceImpl extends Object implements Resource
CATEGORY, COPYRIGHT, DESCRIPTION, DOCUMENTATION_URI, ID, JAVADOC_URI, LICENSE_URI, MANIFEST_VERSION, PRESENTATION_NAME, SIZE, SOURCE_URI, SYMBOLIC_NAME, URI, VERSION| Constructor | Description |
|---|---|
ResourceImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
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() |
public Repository getRepository()
public void setRepository(Repository repository)
public Map getProperties()
ResourcegetProperties in interface Resourcepublic String getPresentationName()
ResourcegetPresentationName in interface Resourcepublic String getSymbolicName()
ResourcegetSymbolicName in interface Resourcepublic String getId()
Resourcepublic org.osgi.framework.Version getVersion()
ResourcegetVersion in interface Resourcepublic String getURI()
Resourcepublic Long getSize()
Resourcepublic Requirement[] getRequirements()
ResourcegetRequirements in interface Resourcepublic void addRequire(Requirement req)
public Capability[] getCapabilities()
ResourcegetCapabilities in interface Resourcepublic void addCapability(Capability cap)
public String[] getCategories()
ResourcegetCategories in interface Resourcepublic void addCategory(String category)
public boolean isLocal()
Resourcepublic Object put(Object key, Object value)
Copyright © 2018. All rights reserved.