|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.user.homelibrary.util.IndentedVisitor
org.gcube.portlets.user.homelibrary.util.WorkspaceTreeVisitor
public class WorkspaceTreeVisitor
An utility to visit a workspace tree.
| Field Summary |
|---|
| Fields inherited from class org.gcube.portlets.user.homelibrary.util.IndentedVisitor |
|---|
DEFAULT_INDENTATION_STRING, indentationChar, indentationLevel, logger, os, sdf |
| Constructor Summary | |
|---|---|
WorkspaceTreeVisitor()
|
|
WorkspaceTreeVisitor(String indentationLevel,
String indentationChar,
PrintStream os,
org.apache.log4j.Logger logger)
|
|
| Method Summary | |
|---|---|
protected void |
printFolderItem(FolderItem item)
|
protected void |
printInfoObject(InfoObject infoObject)
Visits a info object. |
protected void |
printWorkspaceItem(WorkspaceItem item)
Visits a Workspace item. |
protected void |
visitAlternativeLink(DocumentAlternativeLink alternative)
|
protected void |
visitAlternativeLinks(List<DocumentAlternativeLink> alternatives)
|
protected void |
visitAquaMapsItem(AquaMapsItem aquamapsitem)
|
protected void |
visitDocument(Document document)
Visits a document. |
protected void |
visitExternalFile(ExternalFile file)
|
protected void |
visitExternalImage(ExternalImage img)
Visits an image. |
protected void |
visitExternalPDFFile(ExternalPDFFile pdf)
|
protected void |
visitExternalURL(ExternalUrl url)
|
void |
visitFolderItem(FolderItem item)
Visits a folder item. |
protected void |
visitImage(Image img)
|
protected void |
visitImageDocument(ImageDocument document)
|
protected void |
visitImageH(Image img)
|
protected void |
visitItem(WorkspaceItem item)
Visit an item tree without verbose information. |
protected void |
visitMetadata(Metadata metadata)
|
protected void |
visitPartLink(DocumentPartLink part)
|
protected void |
visitPartLinks(List<DocumentPartLink> parts)
|
protected void |
visitPDF(PDF pdf)
|
protected void |
visitPDFDocument(PDFDocument document)
Visits a PDF document. |
protected void |
visitQuery(Query query)
|
protected void |
visitReport(Report report)
|
protected void |
visitReportTemplate(ReportTemplate reportTemplate)
|
void |
visitSimple(WorkspaceItem item)
Visit an item tree without verbose information. |
protected void |
visitTimeSeries(TimeSeries timeseries)
|
protected void |
visitUrlDocument(UrlDocument document)
|
protected void |
visitUser(User user)
Visits an user. |
void |
visitVerbose(WorkspaceFolder folder)
Visit the tree in verbose mode. |
protected void |
visitWorkflowReport(WorkflowReport report)
|
protected void |
visitWorkflowTemplate(WorkflowTemplate template)
|
protected void |
visitWorkspaceFolder(WorkspaceFolder folder)
Visits a workspace folder. |
protected void |
visitWorkspaceItem(WorkspaceItem item)
Visit a workspace item. |
| Methods inherited from class org.gcube.portlets.user.homelibrary.util.IndentedVisitor |
|---|
indent, outdent, println, println, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkspaceTreeVisitor()
public WorkspaceTreeVisitor(String indentationLevel,
String indentationChar,
PrintStream os,
org.apache.log4j.Logger logger)
indentationLevel - the indentation level.indentationChar - the indentation char.os - the output stream.logger - the visitor logger.| Method Detail |
|---|
public void visitVerbose(WorkspaceFolder folder)
throws InternalErrorException
folder - the tree root.
InternalErrorException - if an error occurs.
protected void visitWorkspaceItem(WorkspaceItem item)
throws InternalErrorException
item - the item to visit.
InternalErrorException - if an error occurs.
protected void visitWorkspaceFolder(WorkspaceFolder folder)
throws InternalErrorException
folder - the workspace folder to visit.
InternalErrorException - if an error occurs.
public void visitFolderItem(FolderItem item)
throws InternalErrorException
item - the item to visit.
InternalErrorException - if an error occurs.
protected void visitImage(Image img)
throws InternalErrorException
InternalErrorException
protected void visitPDF(PDF pdf)
throws InternalErrorException
InternalErrorException
protected void visitExternalImage(ExternalImage img)
throws InternalErrorException
img - the image to visit.
InternalErrorException - if an error occurs.
protected void visitExternalFile(ExternalFile file)
throws InternalErrorException
InternalErrorException
protected void visitAquaMapsItem(AquaMapsItem aquamapsitem)
throws InternalErrorException
InternalErrorException
protected void visitImageH(Image img)
throws InternalErrorException
InternalErrorException
protected void visitTimeSeries(TimeSeries timeseries)
throws InternalErrorException
InternalErrorException
protected void visitExternalPDFFile(ExternalPDFFile pdf)
throws InternalErrorException
InternalErrorException
protected void visitExternalURL(ExternalUrl url)
throws InternalErrorException
InternalErrorException
protected void visitQuery(Query query)
throws InternalErrorException
InternalErrorException
protected void visitReport(Report report)
throws InternalErrorException
InternalErrorException
protected void visitReportTemplate(ReportTemplate reportTemplate)
throws InternalErrorException
InternalErrorException
protected void visitWorkflowReport(WorkflowReport report)
throws InternalErrorException
InternalErrorException
protected void visitWorkflowTemplate(WorkflowTemplate template)
throws InternalErrorException
InternalErrorException
protected void printInfoObject(InfoObject infoObject)
throws InternalErrorException
infoObject - the info to visit.
InternalErrorException - if an error occurs.
protected void visitDocument(Document document)
throws InternalErrorException
document - the document to visit.
InternalErrorException - if an error occurs.
protected void visitPDFDocument(PDFDocument document)
throws InternalErrorException
document - the document to visit.
InternalErrorException - if an error occurs.
protected void visitImageDocument(ImageDocument document)
throws InternalErrorException
InternalErrorException
protected void visitUrlDocument(UrlDocument document)
throws InternalErrorException
InternalErrorException
protected void visitAlternativeLinks(List<DocumentAlternativeLink> alternatives)
throws InternalErrorException
InternalErrorException
protected void visitAlternativeLink(DocumentAlternativeLink alternative)
throws InternalErrorException
InternalErrorException
protected void visitPartLinks(List<DocumentPartLink> parts)
throws InternalErrorException
InternalErrorException
protected void visitPartLink(DocumentPartLink part)
throws InternalErrorException
InternalErrorException
protected void visitMetadata(Metadata metadata)
throws InternalErrorException
InternalErrorException
protected void printWorkspaceItem(WorkspaceItem item)
throws InternalErrorException
item - the item to visit.
InternalErrorException - if an error occurs.
protected void printFolderItem(FolderItem item)
throws InternalErrorException
InternalErrorException
protected void visitUser(User user)
throws InternalErrorException
user - the user to visit.
InternalErrorException - if an error occurs.
public void visitSimple(WorkspaceItem item)
throws InternalErrorException
item - the tree root.
InternalErrorException - if an error occurs.
protected void visitItem(WorkspaceItem item)
throws InternalErrorException
item - the item to visit
InternalErrorException - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||