net.sourceforge.argval.packageinfo.impl
Class DomPackageVisitor

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

public class DomPackageVisitor
extends Object
implements PackageInfoVisitor

This visitor creates a JDom Document containing all the details of the visited PackageInfo instances.

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

Constructor Summary
DomPackageVisitor()
          Create a JDom document, containing all visited PackageInfo instances.
DomPackageVisitor(boolean isIncludePackageNameActive)
          Create a JDom document, containing all visited PackageInfo instances.
 
Method Summary
 org.jdom.Document getDocument()
          Returns the created JDom Document instance.
 void visit(PackageInfo packageInfo)
          Get access to the PackageInfo instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomPackageVisitor

public DomPackageVisitor()
Create a JDom document, containing all visited PackageInfo instances. With the package names (Java language dot separated names, like net.sourceforge.argval.packageinfo ).


DomPackageVisitor

public DomPackageVisitor(boolean isIncludePackageNameActive)
Create a JDom document, containing 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.
Method Detail

visit

public void visit(PackageInfo packageInfo)
Get access to the PackageInfo instance.

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

getDocument

public org.jdom.Document getDocument()
Returns the created JDom Document instance.

Returns:
The JDom Document instance.


Copyright © 2013 Verhagen Software. All Rights Reserved.