org.apache.aries.application
Interface Content

All Known Subinterfaces:
DeploymentContent

public interface Content

A representation of content metadata such as Application-Content, Import-Package, etc


Method Summary
 String getAttribute(String key)
          get the value of the attribute with the specified key
 Map<String,String> getAttributes()
          get the attributes of the content
 String getContentName()
          get the content name of the content
 String getDirective(String key)
          get the value of the directive with the specified key
 Map<String,String> getDirectives()
          get the directives of the content
 Map<String,String> getNameValueMap()
          get the attribute and directive info in NameValueMap
 VersionRange getVersion()
          get the version info for the version attribute
 

Method Detail

getContentName

String getContentName()
get the content name of the content

Returns:
the content name of the content

getAttributes

Map<String,String> getAttributes()
get the attributes of the content

Returns:
the attributes of the content

getDirectives

Map<String,String> getDirectives()
get the directives of the content

Returns:
the directives of the content

getAttribute

String getAttribute(String key)
get the value of the attribute with the specified key

Parameters:
key -
Returns:
value of the attribute specified by the key

getDirective

String getDirective(String key)
get the value of the directive with the specified key

Parameters:
key -
Returns:
the value of the directive specified by the key

getVersion

VersionRange getVersion()
get the version info for the version attribute

Returns:
null if there is no version associated with this content

getNameValueMap

Map<String,String> getNameValueMap()
get the attribute and directive info in NameValueMap

Returns:
namevalueMap that contains attribute and directive info


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.