com.springsource.util.osgi.manifest.parse
Interface HeaderDeclaration

All Known Implementing Classes:
StandardHeaderDeclaration

public interface HeaderDeclaration

Describes a header declaration (Import-Package, Export-Package, Require-Bundle, etc.) in an OSGi manifest header.

Concurrent Semantics
Implementations need not be thread-safe.

Since:
1.0
Author:
Rob Harrop, Glyn Normington

Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
          Returns a Map of the attributes included in this declaration.
 java.util.Map<java.lang.String,java.lang.String> getDirectives()
          Returns a Map of the directives included in this declaration.
 java.util.List<java.lang.String> getNames()
          Returns a List of the names of the entries in the declaration.
 

Method Detail

getNames

java.util.List<java.lang.String> getNames()
Returns a List of the names of the entries in the declaration. If the declaration has no names, an empty Map must be returned, rather than null.

Returns:
the names, never null.

getAttributes

java.util.Map<java.lang.String,java.lang.String> getAttributes()
Returns a Map of the attributes included in this declaration. If the declaration has no attributes, an empty Map must be returned, rather than null.

Returns:
the attributes.

getDirectives

java.util.Map<java.lang.String,java.lang.String> getDirectives()
Returns a Map of the directives included in this declaration. If the declaration has no directives, an empty Map must be returned, rather than null.

Returns:
the directives.