org.gcube.portlets.user.homelibrary.util
Class HomeFolderVisitor

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.util.HomeFolderVisitor

public class HomeFolderVisitor
extends Object

Author:
Federico De Faveri defaveri@isti.cnr.it

Field Summary
protected  String indentation
           
protected  PrintStream output
           
protected static SimpleDateFormat sdf
           
protected static String tab
           
 
Constructor Summary
HomeFolderVisitor()
           
HomeFolderVisitor(PrintStream output)
           
 
Method Summary
protected  void indent()
           
protected  void outdent()
           
protected  void println(String line)
           
protected  void visit(DataAreaItem item)
           
 void visit(DataFolder folder)
           
protected  void visitFile(DataFile file)
           
protected  void visitFolder(DataFolder folder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tab

protected static final String tab
See Also:
Constant Field Values

sdf

protected static final SimpleDateFormat sdf

indentation

protected String indentation

output

protected PrintStream output
Constructor Detail

HomeFolderVisitor

public HomeFolderVisitor()

HomeFolderVisitor

public HomeFolderVisitor(PrintStream output)
Parameters:
output - the stream output.
Method Detail

indent

protected void indent()

outdent

protected void outdent()

visit

public void visit(DataFolder folder)
           throws InternalErrorException
Parameters:
folder - teh folder to visit.
Throws:
InternalErrorException - if an internal error occurs.

visit

protected void visit(DataAreaItem item)
              throws InternalErrorException
Throws:
InternalErrorException

visitFolder

protected void visitFolder(DataFolder folder)
                    throws InternalErrorException
Throws:
InternalErrorException

visitFile

protected void visitFile(DataFile file)

println

protected void println(String line)


Copyright © 2013. All Rights Reserved.