com.jscape.inet.vfs
Class VirtualLocalFileDescriptor

java.lang.Object
  extended by com.jscape.inet.vfs.VirtualFileDescriptor<VirtualLocalFileDescriptor.Visitor>
      extended by com.jscape.inet.vfs.VirtualLocalFileDescriptor
All Implemented Interfaces:
com.jscape.util.Copyable<VirtualFileDescriptor>, com.jscape.util.Visitable<VirtualLocalFileDescriptor.Visitor>

public final class VirtualLocalFileDescriptor
extends VirtualFileDescriptor<VirtualLocalFileDescriptor.Visitor>

Contains information about local file.

Version:
1.0
Author:
Alex
See Also:
Source code

Nested Class Summary
static interface VirtualLocalFileDescriptor.Visitor
           
 
Nested classes/interfaces inherited from interface com.jscape.util.Visitable
com.jscape.util.Visitable.VisitorBase, com.jscape.util.Visitable.VisitorException
 
Constructor Summary
VirtualLocalFileDescriptor()
          Creates a new descriptor instance.
VirtualLocalFileDescriptor(java.lang.String path, AccessPermissions accessPermissions, boolean secured, boolean denied, boolean indexable, java.lang.String realPath, boolean createIfNotExists)
           
VirtualLocalFileDescriptor(java.lang.String path, AccessPermissions permissions, java.lang.String realPath, boolean createIfNotExists)
          Creates a new descriptor instance.
VirtualLocalFileDescriptor(VirtualLocalFileDescriptor that)
          Copy constructor.
 
Method Summary
 java.lang.Object accept(VirtualLocalFileDescriptor.Visitor visitor)
          Backwards dispatching entry point.
 VirtualLocalFileDescriptor copy()
           
 boolean getCreateIfNotExists()
          Gets whether directory should be created upon access if it does not exist.
 java.lang.String getName()
          Returns resource name.
 java.lang.String getRealPath()
          Returns real file path in local system.
 void setCreateIfNotExists(boolean value)
          Sets whether directory should be created upon access if it does not exist.
 void setRealPath(java.lang.String realPath)
          Sets real file path.
 java.lang.String toString()
           
 
Methods inherited from class com.jscape.inet.vfs.VirtualFileDescriptor
equals, getAccessPermissions, getPath, hashCode, isDenied, isIndexable, isSecured, setAccessPermissions, setDenied, setIndexable, setPath, setSecured
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VirtualLocalFileDescriptor

public VirtualLocalFileDescriptor(java.lang.String path,
                                  AccessPermissions accessPermissions,
                                  boolean secured,
                                  boolean denied,
                                  boolean indexable,
                                  java.lang.String realPath,
                                  boolean createIfNotExists)

VirtualLocalFileDescriptor

public VirtualLocalFileDescriptor(java.lang.String path,
                                  AccessPermissions permissions,
                                  java.lang.String realPath,
                                  boolean createIfNotExists)
Creates a new descriptor instance.

Parameters:
path - the virtual path
permissions - the file access permissions
realPath - the real file path in local system
createIfNotExists - create path if not exists

VirtualLocalFileDescriptor

public VirtualLocalFileDescriptor()
Creates a new descriptor instance.


VirtualLocalFileDescriptor

public VirtualLocalFileDescriptor(VirtualLocalFileDescriptor that)
Copy constructor.

Parameters:
that - the instance to copy
Method Detail

accept

public java.lang.Object accept(VirtualLocalFileDescriptor.Visitor visitor)
                        throws com.jscape.util.Visitable.VisitorException
Description copied from interface: com.jscape.util.Visitable
Backwards dispatching entry point.

Parameters:
visitor - a visitor instance
Returns:
a visit result if any
Throws:
com.jscape.util.Visitable.VisitorException - if an error occurs

copy

public VirtualLocalFileDescriptor copy()

getRealPath

public java.lang.String getRealPath()
Returns real file path in local system.

Returns:
real file path

setRealPath

public void setRealPath(java.lang.String realPath)
Sets real file path.

Parameters:
realPath - the real file path

getName

public java.lang.String getName()
Returns resource name.

Returns:
resource name

getCreateIfNotExists

public boolean getCreateIfNotExists()
Gets whether directory should be created upon access if it does not exist.

Returns:
true to create directory, false otherwise

setCreateIfNotExists

public void setCreateIfNotExists(boolean value)
Sets whether directory should be created upon access if it does not exist.

Parameters:
value - true to create directory, false otherwise

toString

public java.lang.String toString()
Overrides:
toString in class VirtualFileDescriptor<VirtualLocalFileDescriptor.Visitor>


Copyright © 1999-2010 JSCAPE LLC. All Rights Reserved.