net.sourceforge.argval.manifestinfo.impl
Class ManifestInfoManagerImpl

java.lang.Object
  extended by net.sourceforge.argval.manifestinfo.impl.ManifestInfoManagerImpl
All Implemented Interfaces:
ManifestInfoManager, ManifestInfoVisitorAcceptor, PackageInfoVisitorAcceptor

public final class ManifestInfoManagerImpl
extends Object
implements ManifestInfoManager, PackageInfoVisitorAcceptor


Field Summary
static org.slf4j.Logger logger
          The logging instance.
 Map<String,ManifestInfo> manifestInfoMap
          A Map containing the ManifestInfo instance, by their jar file name.
 
Constructor Summary
ManifestInfoManagerImpl()
           
 
Method Summary
 void accept(ManifestInfoVisitor visitor)
          Entry point for a ManifestInfoVisitor which will visit all registered ManifestInfo instances.
 void accept(PackageInfoVisitor visitor)
          Entry point for a PackageInfoVisitor which will visit all registered ManifestInfo instances as if they are PackageInfo instances.
 void addJar(File path)
           
 void addJar(String classPath)
           
 void addManifestInfo(ManifestInfo manifestInfo)
           
 boolean equals(String textA, String textB)
           
 String getAttributeValue(ManifestInfo manifestInfo, String name)
           
 String getAttributeValue(String regularExpression, String name)
           
 ManifestInfo getManifestInfo(PackageInfo packageInfo)
           
 ManifestInfo getManifestInfo(String regularExpression)
           
 Set<String> getTitleSet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.slf4j.Logger logger
The logging instance.


manifestInfoMap

public Map<String,ManifestInfo> manifestInfoMap
A Map containing the ManifestInfo instance, by their jar file name.

Constructor Detail

ManifestInfoManagerImpl

public ManifestInfoManagerImpl()
Method Detail

addJar

public void addJar(String classPath)
Specified by:
addJar in interface ManifestInfoManager

addJar

public void addJar(File path)
Specified by:
addJar in interface ManifestInfoManager

getManifestInfo

public ManifestInfo getManifestInfo(String regularExpression)
Specified by:
getManifestInfo in interface ManifestInfoManager

getAttributeValue

public String getAttributeValue(String regularExpression,
                                String name)
Specified by:
getAttributeValue in interface ManifestInfoManager

getAttributeValue

public String getAttributeValue(ManifestInfo manifestInfo,
                                String name)
Specified by:
getAttributeValue in interface ManifestInfoManager

addManifestInfo

public void addManifestInfo(ManifestInfo manifestInfo)

getManifestInfo

public ManifestInfo getManifestInfo(PackageInfo packageInfo)
Specified by:
getManifestInfo in interface ManifestInfoManager

equals

public boolean equals(String textA,
                      String textB)

getTitleSet

public Set<String> getTitleSet()
Specified by:
getTitleSet in interface ManifestInfoManager

accept

public void accept(PackageInfoVisitor visitor)
Entry point for a PackageInfoVisitor which will visit all registered ManifestInfo instances as if they are PackageInfo instances.

Specified by:
accept in interface PackageInfoVisitorAcceptor
Parameters:
visitor - The visitor.
See Also:
ManifestInfo.getPackageInfo()

accept

public void accept(ManifestInfoVisitor visitor)
Entry point for a ManifestInfoVisitor which will visit all registered ManifestInfo instances.

Specified by:
accept in interface ManifestInfoVisitorAcceptor
Parameters:
visitor - The visitor.


Copyright © 2013 Verhagen Software. All Rights Reserved.