Class ResourceImpl
java.lang.Object
org.apache.felix.bundlerepository.impl.ResourceImpl
- All Implemented Interfaces:
Resource
- Direct Known Subclasses:
LocalResourceImpl
-
Field Summary
Fields inherited from interface Resource
CATEGORY, COPYRIGHT, DESCRIPTION, DOCUMENTATION_URI, ID, JAVADOC_URI, LICENSE_URI, MANIFEST_VERSION, PRESENTATION_NAME, SIZE, SOURCE_URI, SYMBOLIC_NAME, URI, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCapability(Capability cap) voidaddCategory(String category) voidaddRequire(Requirement req) booleanRetrieve the capabilitiesString[]Retrieve this resource categoriesgetId()Shortcut for {{getProperties().get(ID)}}Shortcut for {{getProperties().get(PRESENTATION_NAME)}}Get all resource propertiesRetrieve the requirementsgetSize()Shortcut for {{getProperties().get(SIZE)}}Shortcut for {{getProperties().get(SYMBOLIC_NAME)}}getURI()Shortcut for {{getProperties().get(URI)}}org.osgi.framework.VersionShortcut for {{getProperties().get(VERSION)}}inthashCode()booleanisLocal()Returns whether this resource is a local one or not.Default setter method when setting parsed data from the XML file.voidvoidsetRepository(Repository repository) toString()
-
Constructor Details
-
ResourceImpl
public ResourceImpl()
-
-
Method Details
-
equals
-
hashCode
-
getRepository
-
setRepository
-
getProperties
Description copied from interface:ResourceGet all resource properties- Specified by:
getPropertiesin interfaceResource- Returns:
-
getPresentationName
Description copied from interface:ResourceShortcut for {{getProperties().get(PRESENTATION_NAME)}}- Specified by:
getPresentationNamein interfaceResource- Returns:
-
getSymbolicName
Description copied from interface:ResourceShortcut for {{getProperties().get(SYMBOLIC_NAME)}}- Specified by:
getSymbolicNamein interfaceResource- Returns:
-
getId
-
getVersion
public org.osgi.framework.Version getVersion()Description copied from interface:ResourceShortcut for {{getProperties().get(VERSION)}}- Specified by:
getVersionin interfaceResource- Returns:
-
getURI
-
getSize
-
getRequirements
Description copied from interface:ResourceRetrieve the requirements- Specified by:
getRequirementsin interfaceResource- Returns:
-
addRequire
-
getCapabilities
Description copied from interface:ResourceRetrieve the capabilities- Specified by:
getCapabilitiesin interfaceResource- Returns:
-
addCapability
-
getCategories
Description copied from interface:ResourceRetrieve this resource categories- Specified by:
getCategoriesin interfaceResource- Returns:
-
addCategory
-
isLocal
-
put
-
put
-
toString
-