com.metamatrix.common.tree.directory
Class RuledDirectoryEntryViewImpl

java.lang.Object
  extended by com.metamatrix.common.tree.AbstractTreeView
      extended by com.metamatrix.common.tree.RuledTreeViewImpl
          extended by com.metamatrix.common.tree.directory.RuledDirectoryEntryViewImpl
All Implemented Interfaces:
PropertiedObjectView, UserTransactionFactory, DirectoryEntryView, TreeView

public class RuledDirectoryEntryViewImpl
extends RuledTreeViewImpl
implements DirectoryEntryView


Constructor Summary
RuledDirectoryEntryViewImpl(TreeView treeView, ChildRules rules)
           
RuledDirectoryEntryViewImpl(TreeView treeView, TreeNode root, ChildRules rules)
           
 
Method Summary
 DirectoryEntryEditor getDirectoryEntryEditor()
          Return the directory entry editor for this view.
protected  DirectoryEntryView getDirectoryEntryView()
           
 DirectoryEntry lookup(java.lang.String path)
          Lookup the node referenced by the relative path in this view.
 DirectoryEntry lookup(java.lang.String path, java.lang.String separator)
          Lookup the node referenced by the relative path in this view, but specify a separator.
 
Methods inherited from class com.metamatrix.common.tree.RuledTreeViewImpl
allowsChild, allowsChildren, createReadTransaction, createWriteTransaction, createWriteTransaction, getChildren, getChildRules, getHome, getMarked, getParent, getPath, getPropertiedObjectEditor, getPropertyDefinitions, getRoots, getSeparator, getSeparatorChar, getTreeNodeEditor, getTreeView, getUnhiddenNodes, getUnhiddenNodes, isAncestorOf, isHidden, isMarked, isNodeHidden, isParentOf, iterator, iterator, print, setMarked, setViewRoots
 
Methods inherited from class com.metamatrix.common.tree.AbstractTreeView
getComparator, getFilter, isRoot, setComparator, setFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.metamatrix.common.tree.TreeView
allowsChild, allowsChildren, getChildren, getComparator, getFilter, getHome, getMarked, getParent, getPath, getPropertyDefinitions, getRoots, getSeparator, getSeparatorChar, getTreeNodeEditor, isAncestorOf, isHidden, isMarked, isParentOf, isRoot, iterator, iterator, setComparator, setFilter, setMarked
 
Methods inherited from interface com.metamatrix.common.object.PropertiedObjectView
getPropertiedObjectEditor
 
Methods inherited from interface com.metamatrix.common.transaction.UserTransactionFactory
createReadTransaction, createWriteTransaction, createWriteTransaction
 

Constructor Detail

RuledDirectoryEntryViewImpl

public RuledDirectoryEntryViewImpl(TreeView treeView,
                                   ChildRules rules)

RuledDirectoryEntryViewImpl

public RuledDirectoryEntryViewImpl(TreeView treeView,
                                   TreeNode root,
                                   ChildRules rules)
Method Detail

getDirectoryEntryView

protected DirectoryEntryView getDirectoryEntryView()

getDirectoryEntryEditor

public DirectoryEntryEditor getDirectoryEntryEditor()
Return the directory entry editor for this view.

Specified by:
getDirectoryEntryEditor in interface DirectoryEntryView
Returns:
the DirectoryEntryEditor instance

lookup

public DirectoryEntry lookup(java.lang.String path)
Lookup the node referenced by the relative path in this view. Depending upon the implementation, this method may return a null reference if a node with the specified path is not found.

Specified by:
lookup in interface DirectoryEntryView
Parameters:
path - the path of the desired node specified in terms of this view (i.e., the result of calling getPath() on this view with the returned node as the parameter should result in the same value as path); may not be null or zero-length
Returns:
the node referenced by the specified path, or null if no such node exists
Throws:
java.lang.AssertionError - if the path is null or zero-length

lookup

public DirectoryEntry lookup(java.lang.String path,
                             java.lang.String separator)
Lookup the node referenced by the relative path in this view, but specify a separator. This method allows the lookup of a path with a different separator than used by this view. Depending upon the implementation, this method may return a null reference if a node with the specified path is not found.

Specified by:
lookup in interface DirectoryEntryView
Parameters:
path - the path of the desired node specified in terms of this view (i.e., the result of calling getPath() on this view with the returned node as the parameter should result in the same value as path); may not be null or zero-length
separater - the string used to separate the components of a name.
Returns:
the node referenced by the specified path, or null if no such node exists
Throws:
java.lang.AssertionError - if the path is null or zero-length


Copyright © 2009. All Rights Reserved.