com.springsource.util.parser.manifest.internal
Interface ManifestVisitor

All Known Implementing Classes:
StandardVisitor

public interface ManifestVisitor

Visited whilst processing the manifest, to build an object implementing ManifestContents

Concurrent Semantics
This class is thread safe.

Author:
Andy Clement

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()
           
 ManifestContents getManifestContents()
           
 java.util.List<java.lang.String> getSectionNames()
           
 java.lang.String getVersion()
           
 void setTerminateAfterMainSection(boolean shouldTerminate)
          Force the parsing to finish once the main section is completed (ignoring the rest of the data)
 void visitHeader(java.lang.String name, java.lang.String value)
           
 void visitManifestVersion(java.lang.String version)
           
 boolean visitSection(boolean isMainSection, java.lang.String name)
           
 

Method Detail

visitManifestVersion

void visitManifestVersion(java.lang.String version)

visitSection

boolean visitSection(boolean isMainSection,
                     java.lang.String name)
Parameters:
isMainSection - or not
name - of section
Returns:
true if parsing should continue

visitHeader

void visitHeader(java.lang.String name,
                 java.lang.String value)

getVersion

java.lang.String getVersion()
Returns:
the version number discovered during the visit

getMainAttributes

java.util.Map<java.lang.String,java.lang.String> getMainAttributes()
Returns:
the main attributes discovered during the visit

getSectionNames

java.util.List<java.lang.String> getSectionNames()
Returns:
the section names discovered during the visit

getAttributesForSection

java.util.Map<java.lang.String,java.lang.String> getAttributesForSection(java.lang.String sectionName)
Parameters:
sectionName -
Returns:
the attributes discovered for a particular section during the visit

getManifestContents

ManifestContents getManifestContents()
Returns:
the contents of the manifested as constructed during the visit

setTerminateAfterMainSection

void setTerminateAfterMainSection(boolean shouldTerminate)
Force the parsing to finish once the main section is completed (ignoring the rest of the data)

Parameters:
shouldTerminate - true if parsing should finish after the main section is visited