TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.fs
Class FsDefaultModel

java.lang.Object
  extended by de.schlichtherle.truezip.fs.FsModel
      extended by de.schlichtherle.truezip.fs.FsDefaultModel
Direct Known Subclasses:
FsDefaultManager.ScheduledModel

@ThreadSafe
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
public class FsDefaultModel
extends FsModel

The default implementation of a file system model.

Author:
Christian Schlichtherle

Field Summary
private  FsMountPoint mountPoint
           
private  FsModel parent
           
private  boolean touched
           
 
Constructor Summary
FsDefaultModel(FsMountPoint mountPoint, FsModel parent)
           
 
Method Summary
private static boolean equals(Object o1, Object o2)
           
 FsMountPoint getMountPoint()
          Returns the mount point of this file system model.
 FsModel getParent()
          Returns the model of the parent file system or null if and only if the file system is not federated, i.e. if it's not a member of a parent file system.
 boolean isTouched()
          Returns true if and only if the contents of the federated file system have been modified so that it needs synchronization with its parent file system.
 void setTouched(boolean touched)
          Sets the value of the property touched.
 
Methods inherited from class de.schlichtherle.truezip.fs.FsModel
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mountPoint

private final FsMountPoint mountPoint

parent

@CheckForNull
private final FsModel parent

touched

private volatile boolean touched
Constructor Detail

FsDefaultModel

public FsDefaultModel(FsMountPoint mountPoint,
                      @CheckForNull
                      FsModel parent)
Method Detail

equals

private static boolean equals(@CheckForNull
                              Object o1,
                              @CheckForNull
                              Object o2)

getMountPoint

public final FsMountPoint getMountPoint()
Description copied from class: FsModel
Returns the mount point of this file system model.

The mount point may be used to construct error messages or to locate and access file system metadata which is stored outside the file system, e.g. in-memory stored passwords for RAES encrypted ZIP files.

Specified by:
getMountPoint in class FsModel
Returns:
The mount point of this file system model.

getParent

public final FsModel getParent()
Description copied from class: FsModel
Returns the model of the parent file system or null if and only if the file system is not federated, i.e. if it's not a member of a parent file system.

Specified by:
getParent in class FsModel
Returns:
The nullable parent file system model.

isTouched

public boolean isTouched()
Description copied from class: FsModel
Returns true if and only if the contents of the federated file system have been modified so that it needs synchronization with its parent file system.

Specified by:
isTouched in class FsModel

setTouched

public void setTouched(boolean touched)
Description copied from class: FsModel
Sets the value of the property touched.

Specified by:
setTouched in class FsModel
Parameters:
touched - the new value of this property.

TrueZIP Kernel 7.0-rc2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.