com.springsource.bundlor.util
Class SimpleManifestContents

java.lang.Object
  extended by com.springsource.bundlor.util.SimpleManifestContents
All Implemented Interfaces:
com.springsource.util.parser.manifest.ManifestContents

public class SimpleManifestContents
extends java.lang.Object
implements com.springsource.util.parser.manifest.ManifestContents

A simple implementation of the ManifestContents interface backed by maps.

Concurrent Semantics
Not threadsafe

Author:
Ben Hale

Field Summary
private  java.util.Map<java.lang.String,java.lang.String> mainAttributes
           
private  java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> otherSectionAttributes
           
private  java.lang.String version
           
 
Constructor Summary
SimpleManifestContents()
           
SimpleManifestContents(java.lang.String version)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAttributesForSection(java.lang.String sectionName)
          
 java.util.Map<java.lang.String,java.lang.String> getMainAttributes()
          
 java.util.List<java.lang.String> getSectionNames()
          
 java.lang.String getVersion()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

private final java.lang.String version

mainAttributes

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

otherSectionAttributes

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

SimpleManifestContents

public SimpleManifestContents()

SimpleManifestContents

public SimpleManifestContents(java.lang.String version)
Method Detail

getAttributesForSection

public java.util.Map<java.lang.String,java.lang.String> getAttributesForSection(java.lang.String sectionName)

Specified by:
getAttributesForSection in interface com.springsource.util.parser.manifest.ManifestContents

getMainAttributes

public java.util.Map<java.lang.String,java.lang.String> getMainAttributes()

Specified by:
getMainAttributes in interface com.springsource.util.parser.manifest.ManifestContents

getSectionNames

public java.util.List<java.lang.String> getSectionNames()

Specified by:
getSectionNames in interface com.springsource.util.parser.manifest.ManifestContents

getVersion

public java.lang.String getVersion()

Specified by:
getVersion in interface com.springsource.util.parser.manifest.ManifestContents