com.hp.ucmdb.api.view
Interface ViewFolder


public interface ViewFolder

Represents a folder in views folder structure.

Since:
8.0

Method Summary
 View findViewByName(java.lang.String name)
          Convenience function that gets a view name and returns the view with that name that is a descendant of this folder.
 java.util.Collection<ViewFolder> getChildFolders()
          Returns an unmodifiable collection of immediate child folders of this folder.
 java.util.Collection<View> getChildViews()
          Returns an unmodifiable collection of views residing in this folder.
 java.lang.String getName()
          The name of the folder.
 void visitChildren(ViewTreeVisitor visitor)
          Visits the view folder's children using a visitor.
 

Method Detail

getName

java.lang.String getName()
The name of the folder.


getChildFolders

java.util.Collection<ViewFolder> getChildFolders()
Returns an unmodifiable collection of immediate child folders of this folder.


getChildViews

java.util.Collection<View> getChildViews()
Returns an unmodifiable collection of views residing in this folder.


visitChildren

void visitChildren(ViewTreeVisitor visitor)
Visits the view folder's children using a visitor. The visitor can be client-based.

This method can receive client implementations of ViewTreeVisitor

This method visits the current folder only. If traversing is needed, it is the client's responsability to call the visit methods of the child folders, if any.

Parameters:
visitor - a client implementation of the ViewTreeVisitor interface.

findViewByName

View findViewByName(java.lang.String name)
Convenience function that gets a view name and returns the view with that name that is a descendant of this folder.

Parameters:
name - the name to search.
Returns:
the query, or null if query not found.


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.