org.osgi.impl.bundle.obr.resource
Class ResourceImpl
java.lang.Object
org.osgi.impl.bundle.obr.resource.ResourceImpl
- All Implemented Interfaces:
- Resource
public class ResourceImpl
- extends Object
- implements 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 |
ResourceImpl
public ResourceImpl(RepositoryImpl repository,
String name,
VersionRange version)
ResourceImpl
public ResourceImpl(RepositoryImpl repository,
org.xmlpull.v1.XmlPullParser parser)
throws Exception
- Throws:
Exception
ResourceImpl
public ResourceImpl(RepositoryImpl impl)
ResourceImpl
public ResourceImpl(RepositoryImpl impl,
URL url)
addCategory
public void addCategory(String category)
addCapability
public void addCapability(CapabilityImpl capability)
addRequirement
public void addRequirement(RequirementImpl requirement)
setLicense
public void setLicense(URL license)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getCapabilities
public Capability[] getCapabilities()
- Specified by:
getCapabilities
in interface Resource
getLicense
public URL getLicense()
getSymbolicName
public String getSymbolicName()
- Specified by:
getSymbolicName
in interface Resource
getRequirements
public Requirement[] getRequirements()
- Specified by:
getRequirements
in interface Resource
toXML
public Tag toXML()
toXML
public static Tag toXML(Resource resource)
toXML
public static Tag toXML(Resource resource,
boolean relative)
getURL
public URL getURL()
- Specified by:
getURL
in interface Resource
setURL
public void setURL(URL url)
getCopyright
public String getCopyright()
getVersion
public org.osgi.framework.Version getVersion()
- Specified by:
getVersion
in interface Resource
setCopyright
public void setCopyright(String copyright)
getDocumentation
public URL getDocumentation()
setDocumentation
public void setDocumentation(URL documentation)
getSource
public URL getSource()
setSource
public void setSource(URL source)
satisfies
public boolean satisfies(RequirementImpl requirement)
toString
public String toString()
- Overrides:
toString
in class Object
getSize
public long getSize()
setSize
public void setSize(long size)
getRequirementList
public Collection getRequirementList()
getCapabilityList
public Collection getCapabilityList()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
getCategories
public String[] getCategories()
- Specified by:
getCategories
in interface Resource
getProperties
public Map getProperties()
- Specified by:
getProperties
in interface Resource
getId
public String getId()
- Specified by:
getId
in interface Resource
getRepository
public Repository getRepository()
- Specified by:
getRepository
in interface Resource
setPresentationName
public void setPresentationName(String name)
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationName
in interface Resource
setFile
public void setFile(File zipFile)
getExtendList
public Set getExtendList()
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.