M
- the type of the decorated file system model.@ThreadSafe public abstract class FsDecoratingModel<M extends FsModel> extends FsModel
Modifier and Type | Field and Description |
---|---|
protected M |
delegate
The decorated file system model.
|
Modifier | Constructor and Description |
---|---|
protected |
FsDecoratingModel(M delegate)
Constructs a new decorating file system model.
|
Modifier and Type | Method and Description |
---|---|
FsMountPoint |
getMountPoint()
Returns the mount point of the file system.
|
FsModel |
getParent()
Returns the model of the parent file system or
null if and
only if the file system is not federated, i.e. |
boolean |
isTouched()
Returns
true if and only if some state associated with the
federated file system has been modified so that the
corresponding FsController must not get discarded until
the next sync . |
void |
setTouched(boolean touched)
Sets the value of the property
touched
(optional operation). |
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
protected FsDecoratingModel(M delegate)
delegate
- the file system model to decorate.public FsMountPoint getMountPoint()
FsModel
The mount point may be used to construct error messages or to locate and access file system meta data which is stored outside the file system, e.g. in-memory stored passwords for RAES encrypted ZIP files.
getMountPoint
in class FsModel
public FsModel getParent()
FsModel
null
if and
only if the file system is not federated, i.e. if it's not a member of
a parent file system.public boolean isTouched()
FsModel
true
if and only if some state associated with the
federated file system has been modified so that the
corresponding FsController
must not get discarded until
the next sync
.
The implementation in the class FsModel
always returns
false
.
isTouched
in class FsModel
true
if and only if some state associated with the
federated file system has been modified so that the
corresponding FsController
must not get discarded until
the next sync
.public void setTouched(boolean touched)
FsModel
touched
(optional operation).
The implementation in the class FsModel
always throws an
UnsupportedOperationException
.
setTouched
in class FsModel
touched
- the new value of this property.Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.