org.entityfs
Interface EntityAcceptingEntity<T extends EntityAcceptingEntityView<?>>

All Superinterfaces:
Comparable<EntityView>, Deletable, Entity, EntityAcceptingEntityView<T>, EntityHolder, EntityView, Lockable, Named, Observable, ReadLockable, ReadWriteLockable, ViewCapable<T>, WriteLockable
All Known Subinterfaces:
Directory

public interface EntityAcceptingEntity<T extends EntityAcceptingEntityView<?>>
extends Entity, EntityAcceptingEntityView<T>

This interface is an abstraction of an entity that may accept child entities given the right conditions. A Directory always accepts child entities, but a symbolic link only accepts child entities if its pointing to a directory.

Objects implementing this interface can be used with some of the utility methods of Entities and Directories.

See EntityAcceptingEntityView for more documentation.

Since:
1.0
Author:
Karl Gustafsson
See Also:
Entities, EntityAcceptingEntities

Method Summary
 
Methods inherited from interface org.entityfs.Entity
hasExecuteAccess, hasReadAccess, hasWriteAccess
 
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