com.metamatrix.common.tree.directory
Interface DirectoryEntryEditor
- All Superinterfaces:
- PropertiedObjectEditor, PropertyAccessPolicy, TreeNodeEditor, UserTransactionFactory
- All Known Implementing Classes:
- FileSystemEntryEditor
public interface DirectoryEntryEditor
- extends TreeNodeEditor
This interface defines a edit DirectoryEntry instances.
Method Summary |
PropertyDefinition |
getDescriptionPropertyDefinition(TreeNode obj)
Filter the specified PropertyDefinition instances and return the first
definition that is mapped to "the description" property for the metadata object. |
boolean |
isNameValid(java.lang.String newName)
Determine whether the specified name is valid for a file or folder on the
current file system. |
boolean |
makeExist(DirectoryEntry entry)
Check for the existance of the specified entry, and creates an underlying
resource for the entry if one does not exist. |
Methods inherited from interface com.metamatrix.common.tree.TreeNodeEditor |
create, create, delete, getNamePropertyDefinition, isAncestorOf, isMarked, isParentOf, move, move, moveChild, paste, rename, setMarked |
makeExist
boolean makeExist(DirectoryEntry entry)
- Check for the existance of the specified entry, and creates an underlying
resource for the entry if one does not exist.
- Parameters:
obj
- the node to be deleted; may not be null
- Returns:
- true if the entry was successfully created (made to exist); false
if the entry already exists or if the entry could not be created
- Throws:
java.lang.AssertionError
- if obj
is null
getDescriptionPropertyDefinition
PropertyDefinition getDescriptionPropertyDefinition(TreeNode obj)
- Filter the specified PropertyDefinition instances and return the first
definition that is mapped to "the description" property for the metadata object.
- Parameters:
obj
- the tree node; may not be null
- Returns:
- the first PropertyDefinition instance found in the list of
PropertyDefinition instances that represents the description property for the object,
or null if no such PropertyDefinition is found.
isNameValid
boolean isNameValid(java.lang.String newName)
- Determine whether the specified name is valid for a file or folder on the
current file system.
- Parameters:
newName
- the new name to be checked
- Returns:
- true if the name is null or contains no invalid characters for a
folder or file, or false otherwise
Copyright © 2009. All Rights Reserved.