org.apache.aries.application.impl
Class ContentImpl
java.lang.Object
org.apache.aries.application.impl.ContentImpl
- All Implemented Interfaces:
- Content
public final class ContentImpl
- extends Object
- implements Content
Implementation of Content
attributes
protected Map<String,String> attributes
ContentImpl
public ContentImpl(String content)
- Parameters:
content - Application-Content, Import-Package content
ContentImpl
public ContentImpl(String bundleSymbolicName,
org.osgi.framework.Version version)
ContentImpl
public ContentImpl(String bundleSymbolicName,
VersionRange version)
ContentImpl
public ContentImpl(String contentName,
ManifestHeaderProcessor.NameValueMap<String,String> nameValueMap)
- Parameters:
contentName - nameValueMap -
getContentName
public String getContentName()
- Specified by:
getContentName in interface Content
getAttributes
public Map<String,String> getAttributes()
- Specified by:
getAttributes in interface Content
getDirectives
public Map<String,String> getDirectives()
- Specified by:
getDirectives in interface Content
getAttribute
public String getAttribute(String key)
- Specified by:
getAttribute in interface Content
addAttribute
public void addAttribute(String key,
String value)
- add key value to the attributes map
- Parameters:
key - value -
getDirective
public String getDirective(String key)
- Specified by:
getDirective in interface Content
getNameValueMap
public ManifestHeaderProcessor.NameValueMap<String,String> getNameValueMap()
- Specified by:
getNameValueMap in interface Content
addDirective
public void addDirective(String key,
String value)
- add key value to the directives map
- Parameters:
key - value -
getVersion
public VersionRange getVersion()
- Specified by:
getVersion in interface Content
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
setup
protected void setup()
- set up directives and attributes
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.