org.apache.aries.application.impl
Class ContentImpl

java.lang.Object
  extended by org.apache.aries.application.impl.ContentImpl
All Implemented Interfaces:
Content

public final class ContentImpl
extends Object
implements Content

Implementation of Content


Field Summary
protected  Map<String,String> attributes
           
 
Constructor Summary
ContentImpl(String content)
           
ContentImpl(String contentName, ManifestHeaderProcessor.NameValueMap<String,String> nameValueMap)
           
ContentImpl(String bundleSymbolicName, org.osgi.framework.Version version)
           
ContentImpl(String bundleSymbolicName, VersionRange version)
           
 
Method Summary
 void addAttribute(String key, String value)
          add key value to the attributes map
 void addDirective(String key, String value)
          add key value to the directives map
 boolean equals(Object other)
           
 String getAttribute(String key)
           
 Map<String,String> getAttributes()
           
 String getContentName()
           
 String getDirective(String key)
           
 Map<String,String> getDirectives()
           
 ManifestHeaderProcessor.NameValueMap<String,String> getNameValueMap()
           
 VersionRange getVersion()
           
 int hashCode()
           
protected  void setup()
          set up directives and attributes
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

attributes

protected Map<String,String> attributes
Constructor Detail

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 -
Method Detail

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.