org.apache.aries.application.impl
Class DeploymentContentImpl
java.lang.Object
org.apache.aries.application.impl.DeploymentContentImpl
- All Implemented Interfaces:
- Content, DeploymentContent
public final class DeploymentContentImpl
- extends Object
- implements DeploymentContent
|
Constructor Summary |
DeploymentContentImpl(String deployedContent)
Construct a DeploymentContent from a string of the form,
bundle.symbolic.name;deployedContent="1.2.3" |
DeploymentContentImpl(String bundleSymbolicName,
org.osgi.framework.Version version)
DeploymentContent relates to a bundle at a particular version. |
DeploymentContentImpl
public DeploymentContentImpl(String bundleSymbolicName,
org.osgi.framework.Version version)
- DeploymentContent relates to a bundle at a particular version.
We can therefore assume that the Version passed into this
constructor is the exact version in question.
- Parameters:
bundleSymbolicName - version -
DeploymentContentImpl
public DeploymentContentImpl(String deployedContent)
- Construct a DeploymentContent from a string of the form,
bundle.symbolic.name;deployedContent="1.2.3"
- Parameters:
deployedContent -
getExactVersion
public org.osgi.framework.Version getExactVersion()
- Specified by:
getExactVersion in interface DeploymentContent
getAttribute
public String getAttribute(String key)
- Specified by:
getAttribute in interface Content
getAttributes
public Map<String,String> getAttributes()
- Specified by:
getAttributes in interface Content
getContentName
public String getContentName()
- Specified by:
getContentName in interface Content
getDirective
public String getDirective(String key)
- Specified by:
getDirective in interface Content
getDirectives
public Map<String,String> getDirectives()
- Specified by:
getDirectives in interface Content
getVersion
public VersionRange getVersion()
- Specified by:
getVersion in interface Content
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getNameValueMap
public Map<String,String> getNameValueMap()
- Specified by:
getNameValueMap in interface Content
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.