org.entityfs
Interface Directory

All Superinterfaces:
Comparable<EntityView>, Deletable, DirectoryView, Entity, EntityAcceptingEntity<DirectoryView>, EntityAcceptingEntityView<DirectoryView>, EntityHolder, EntityListable, EntityRepository, EntityView, Iterable<EntityView>, Lockable, Named, Observable, ReadLockable, ReadWriteLockable, ViewCapable<DirectoryView>, WriteLockable
All Known Subinterfaces:
DirectoryImplementation
All Known Implementing Classes:
DirectoryImpl

public interface Directory
extends EntityAcceptingEntity<DirectoryView>, DirectoryView

This is an interface for a directory implementation. A directory is an entity that has zero or more child entities of any type.

A directory supports being viewed through a DirectoryView. A view uses a Filter to hide child entities.

In addition to the methods defined in this interface and in DirectoryView, a client can use the static utility methods defined in the Directories class.

Since:
1.0
Author:
Karl Gustafsson
See Also:
DirectoryView, Entities, EntityAcceptingEntities, Directories
In_jar:
entityfs-core

Field Summary
static String DEFAULT_TEMP_FILE_SUFFIX
          The default suffix for creating temporary files, used when no other suffix is given.
static int MINIMUM_TEMP_FILE_PREFIX_LENGTH
          The minimum length of the prefix when creating a temporary file.
 
Method Summary
 
Methods inherited from interface org.entityfs.Entity
hasExecuteAccess, hasReadAccess, hasWriteAccess
 
Methods inherited from interface org.entityfs.DirectoryView
getUniqueEntityName, newEntity
 
Methods inherited from interface org.entityfs.EntityAcceptingEntityView
canBeDereferenced, dereferenceOrNull
 
Methods inherited from interface org.entityfs.EntityView
canRead, canWrite, copy, copy, copyAttributes, createLock, disconnect, getCapability, getFileSystem, getLastModified, getParent, getType, getViewed, getViewedEntity, isConnected, isRootDirectory, isValid, lock, rename, setLastModified, supportsCapability, touch
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.entityfs.event.Observable
addObserver, countObservers, deleteObserver, deleteObservers
 
Methods inherited from interface org.entityfs.Named
getName
 
Methods inherited from interface org.entityfs.lock.ReadLockable
getReadLock, isReadLockedByCurrentThread, lockForReading
 
Methods inherited from interface org.entityfs.Deletable
delete, isDeleted
 
Methods inherited from interface org.entityfs.lock.WriteLockable
getWriteLock, isWriteLockedByCurrentThread, lockForWriting
 
Methods inherited from interface org.entityfs.ViewCapable
getFilter, hasFilters, newView
 
Methods inherited from interface org.entityfs.EntityHolder
containsEntity, containsEntity, getEntityOrNull
 
Methods inherited from interface org.entityfs.EntityListable
isEmpty, listEntities
 
Methods inherited from interface java.lang.Iterable
iterator
 

Field Detail

MINIMUM_TEMP_FILE_PREFIX_LENGTH

static final int MINIMUM_TEMP_FILE_PREFIX_LENGTH
The minimum length of the prefix when creating a temporary file. This is the same as the minimum prefix for File.createTempFile(String, String).

See Also:
Constant Field Values

DEFAULT_TEMP_FILE_SUFFIX

static final String DEFAULT_TEMP_FILE_SUFFIX
The default suffix for creating temporary files, used when no other suffix is given. This is the same as the default suffix for File.createTempFile(String, String).

See Also:
Constant Field Values