org.osgi.impl.bundle.obr.resource
Class ResourceImpl
java.lang.Object
org.osgi.impl.bundle.obr.resource.ResourceImpl
- All Implemented Interfaces:
- org.osgi.service.obr.Resource
public class ResourceImpl
- extends java.lang.Object
- implements org.osgi.service.obr.Resource
Fields inherited from interface org.osgi.service.obr.Resource |
COPYRIGHT, DESCRIPTION, DOCUMENTATION_URL, KEYS, LICENSE_URL, PRESENTATION_NAME, SIZE, SOURCE_URL, SYMBOLIC_NAME, URL, VERSION |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ResourceImpl
public ResourceImpl(RepositoryImpl repository,
java.lang.String name,
VersionRange version)
ResourceImpl
public ResourceImpl(RepositoryImpl repository,
org.xmlpull.v1.XmlPullParser parser)
throws java.lang.Exception
- Throws:
java.lang.Exception
ResourceImpl
public ResourceImpl(RepositoryImpl impl)
addCategory
public void addCategory(java.lang.String category)
addCapability
public void addCapability(CapabilityImpl capability)
addRequirement
public void addRequirement(RequirementImpl requirement)
setLicense
public void setLicense(java.net.URL license)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getCapabilities
public org.osgi.service.obr.Capability[] getCapabilities()
- Specified by:
getCapabilities
in interface org.osgi.service.obr.Resource
getLicense
public java.net.URL getLicense()
getSymbolicName
public java.lang.String getSymbolicName()
- Specified by:
getSymbolicName
in interface org.osgi.service.obr.Resource
getRequirements
public org.osgi.service.obr.Requirement[] getRequirements()
- Specified by:
getRequirements
in interface org.osgi.service.obr.Resource
toXML
public Tag toXML()
toXML
public static Tag toXML(org.osgi.service.obr.Resource resource)
toXML
public static Tag toXML(org.osgi.service.obr.Resource resource,
boolean relative)
getURL
public java.net.URL getURL()
- Specified by:
getURL
in interface org.osgi.service.obr.Resource
setURL
public void setURL(java.net.URL url)
getCopyright
public java.lang.String getCopyright()
getVersion
public org.osgi.framework.Version getVersion()
- Specified by:
getVersion
in interface org.osgi.service.obr.Resource
setCopyright
public void setCopyright(java.lang.String copyright)
getDocumentation
public java.net.URL getDocumentation()
setDocumentation
public void setDocumentation(java.net.URL documentation)
getSource
public java.net.URL getSource()
setSource
public void setSource(java.net.URL source)
satisfies
public boolean satisfies(RequirementImpl requirement)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getSize
public long getSize()
setSize
public void setSize(long size)
getRequirementList
public java.util.Collection getRequirementList()
getCapabilityList
public java.util.Collection getCapabilityList()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
getCategories
public java.lang.String[] getCategories()
- Specified by:
getCategories
in interface org.osgi.service.obr.Resource
getProperties
public java.util.Map getProperties()
- Specified by:
getProperties
in interface org.osgi.service.obr.Resource
getId
public java.lang.String getId()
- Specified by:
getId
in interface org.osgi.service.obr.Resource
getRepository
public org.osgi.service.obr.Repository getRepository()
- Specified by:
getRepository
in interface org.osgi.service.obr.Resource
setPresentationName
public void setPresentationName(java.lang.String name)
getPresentationName
public java.lang.String getPresentationName()
- Specified by:
getPresentationName
in interface org.osgi.service.obr.Resource
setFile
public void setFile(java.io.File zipFile)
getExtendList
public java.util.Set getExtendList()