Package com.jscape.inet.vfs
Class VirtualFileDescriptor<H>
- java.lang.Object
-
- com.jscape.inet.vfs.VirtualFileDescriptor<H>
-
- Direct Known Subclasses:
VirtualLocalFileDescriptor,VirtualRemoteFileDescriptor
public abstract class VirtualFileDescriptor<H> extends java.lang.ObjectVirtual file information container.- Author:
- Alex
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVirtualFileDescriptor.HandlerBase
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaccept(H handler)abstract VirtualFileDescriptor<?>copy()AccessPermissionsgetAccessPermissions()Returns file access permissions.java.lang.StringgetPath()Returns virtual path.booleanisDenied()Returns file denied flag.booleanisIndexable()Returns the indexable flag.booleanisSecured()Returns file security flag.voidsetAccessPermissions(AccessPermissions accessPermissions)Sets file access permissions.voidsetDenied(boolean denied)Sets file denied flag.voidsetIndexable(boolean value)Sets the indexable flag.voidsetPath(java.lang.String path)Sets virtual path.voidsetSecured(boolean secured)Sets file security flag.java.lang.StringtoString()
-
-
-
Method Detail
-
getPath
public java.lang.String getPath()
Returns virtual path.- Returns:
- virtual path
-
setPath
public void setPath(java.lang.String path)
Sets virtual path.- Parameters:
path- the virtual path
-
getAccessPermissions
public AccessPermissions getAccessPermissions()
Returns file access permissions.- Returns:
- file access permissions
-
setAccessPermissions
public void setAccessPermissions(AccessPermissions accessPermissions)
Sets file access permissions.- Parameters:
accessPermissions- the file access permissions
-
isSecured
public boolean isSecured()
Returns file security flag.- Returns:
trueif access to this file must be somehow secured;falseotherwise
-
setSecured
public void setSecured(boolean secured)
Sets file security flag.- Parameters:
secured- if code>true access to this file must be somehow secured
-
isDenied
public boolean isDenied()
Returns file denied flag.- Returns:
trueif access to this file is denied;falseotherwise
-
setDenied
public void setDenied(boolean denied)
Sets file denied flag.- Parameters:
denied- iftrueaccess to this file is denied
-
isIndexable
public boolean isIndexable()
Returns the indexable flag.- Returns:
trueif file should be included in index;falseotherwise
-
setIndexable
public void setIndexable(boolean value)
Sets the indexable flag.- Parameters:
value- iftruethis file should be included in index
-
accept
public abstract void accept(H handler) throws java.lang.Exception
- Throws:
java.lang.Exception
-
copy
public abstract VirtualFileDescriptor<?> copy()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-