net.sourceforge.argval.packageinfo.impl
Class SimplePackageInfoVisitor

java.lang.Object
  extended by net.sourceforge.argval.packageinfo.impl.SimplePackageInfoVisitor
All Implemented Interfaces:
PackageInfoVisitor

public final class SimplePackageInfoVisitor
extends Object
implements PackageInfoVisitor

Creates a plain text which shows the visited PackageInfo title and (implementation) version. And shows all the dot separated package names, which are associated with the Package.

Version:
$Revision: $ Last modified: $Date: $
Author:
$Author: $

Field Summary
static int MAX_PACKAGE_NAME_DEPTH
           
 
Constructor Summary
SimplePackageInfoVisitor()
           
SimplePackageInfoVisitor(boolean isIncludePackageNameActive)
          Create a plain text, of all visited PackageInfo instances.
SimplePackageInfoVisitor(CollectionUtilConfigFactory configFactory, CollectionFilter collectionFilter)
          Create a plain text, which will include all package names assosiated with the visited PackageInfo instances.
SimplePackageInfoVisitor(Filter filter)
           
SimplePackageInfoVisitor(int packageNameDepth)
           
SimplePackageInfoVisitor(int packageNameDepth, Filter filter)
           
 
Method Summary
 String toString()
          
 void visit(PackageInfo packageInfo)
          Get access to the PackageInfo instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_PACKAGE_NAME_DEPTH

public static final int MAX_PACKAGE_NAME_DEPTH
See Also:
Constant Field Values
Constructor Detail

SimplePackageInfoVisitor

public SimplePackageInfoVisitor(CollectionUtilConfigFactory configFactory,
                                CollectionFilter collectionFilter)
Create a plain text, which will include all package names assosiated with the visited PackageInfo instances.


SimplePackageInfoVisitor

public SimplePackageInfoVisitor()

SimplePackageInfoVisitor

public SimplePackageInfoVisitor(boolean isIncludePackageNameActive)
Create a plain text, of all visited PackageInfo instances. With or without the package names (Java language dot separated names, like net.sourceforge.argval.packageinfo ).

Parameters:
isIncludePackageNameActive - When true all package names assosiated with this Package are added to the text.

SimplePackageInfoVisitor

public SimplePackageInfoVisitor(int packageNameDepth)

SimplePackageInfoVisitor

public SimplePackageInfoVisitor(Filter filter)

SimplePackageInfoVisitor

public SimplePackageInfoVisitor(int packageNameDepth,
                                Filter filter)
Method Detail

visit

public void visit(PackageInfo packageInfo)
Get access to the PackageInfo instance. Adds the details (title and version) of each PackageInfo instance and all the package names (The Java language dot separated package names), which are associated with this package.

Specified by:
visit in interface PackageInfoVisitor
Parameters:
packageInfo - The instance visited.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013 Verhagen Software. All Rights Reserved.