com.springsource.util.osgi.manifest.parse.standard
Class StandardHeaderDeclaration

java.lang.Object
  extended by com.springsource.util.osgi.manifest.parse.standard.StandardHeaderDeclaration
All Implemented Interfaces:
HeaderDeclaration

final class StandardHeaderDeclaration
extends java.lang.Object
implements HeaderDeclaration


Field Summary
private  java.util.Map<java.lang.String,java.lang.String> attributes
           
private  java.util.Map<java.lang.String,java.lang.String> directives
           
private  java.util.List<java.lang.String> names
           
 
Constructor Summary
StandardHeaderDeclaration(java.util.List<java.lang.String> names, java.util.Map<java.lang.String,java.lang.String> attributes, java.util.Map<java.lang.String,java.lang.String> directives)
          Creates a new ImmutableHeaderDeclaration that contains a copy of the supplied names, attributes, and directives.
 
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.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

names

private final java.util.List<java.lang.String> names

attributes

private final java.util.Map<java.lang.String,java.lang.String> attributes

directives

private final java.util.Map<java.lang.String,java.lang.String> directives
Constructor Detail

StandardHeaderDeclaration

StandardHeaderDeclaration(java.util.List<java.lang.String> names,
                          java.util.Map<java.lang.String,java.lang.String> attributes,
                          java.util.Map<java.lang.String,java.lang.String> directives)
Creates a new ImmutableHeaderDeclaration that contains a copy of the supplied names, attributes, and directives.

Parameters:
names - the names in the declaration.
attributes - the attributes in the declaration.
directives - the directives in the declaration.
Method Detail

getAttributes

public 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.

Specified by:
getAttributes in interface HeaderDeclaration
Returns:
the attributes.

getDirectives

public 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.

Specified by:
getDirectives in interface HeaderDeclaration
Returns:
the directives.

getNames

public 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.

Specified by:
getNames in interface HeaderDeclaration
Returns:
the names, never null.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object