Package org.uberfire.backend.vfs.impl
Class ObservablePathImpl
- java.lang.Object
-
- org.uberfire.backend.vfs.impl.ObservablePathImpl
-
- All Implemented Interfaces:
Comparable<Path>,IsVersioned,ObservablePath,Path,org.uberfire.commons.lifecycle.Disposable
@Portable @Dependent public class ObservablePathImpl extends Object implements ObservablePath, IsVersioned
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.uberfire.backend.vfs.ObservablePath
ObservablePath.OnConcurrentCopyEvent, ObservablePath.OnConcurrentDelete, ObservablePath.OnConcurrentRenameEvent, ObservablePath.OnConcurrentUpdateEvent
-
-
Constructor Summary
Constructors Constructor Description ObservablePathImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Path o)voiddispose()booleanequals(Object o)StringgetFileName()PathgetOriginal()inthashCode()booleanhasVersionSupport()static intindexOfExtension(String filename)voidonConcurrentCopy(ParameterizedCommand<ObservablePath.OnConcurrentCopyEvent> command)voidonConcurrentDelete(ParameterizedCommand<ObservablePath.OnConcurrentDelete> command)voidonConcurrentRename(ParameterizedCommand<ObservablePath.OnConcurrentRenameEvent> command)voidonConcurrentUpdate(ParameterizedCommand<ObservablePath.OnConcurrentUpdateEvent> command)voidonCopy(Command command)voidonDelete(Command command)voidonRename(Command command)voidonUpdate(Command command)static StringremoveExtension(String filename)StringtoString()StringtoURI()ObservablePathwrap(Path path)
-
-
-
Method Detail
-
indexOfExtension
public static int indexOfExtension(String filename)
-
wrap
public ObservablePath wrap(Path path)
- Specified by:
wrapin interfaceObservablePath
-
getOriginal
public Path getOriginal()
- Specified by:
getOriginalin interfaceObservablePath
-
getFileName
public String getFileName()
- Specified by:
getFileNamein interfacePath
-
hasVersionSupport
public boolean hasVersionSupport()
- Specified by:
hasVersionSupportin interfaceIsVersioned
-
compareTo
public int compareTo(Path o)
- Specified by:
compareToin interfaceComparable<Path>
-
onRename
public void onRename(Command command)
- Specified by:
onRenamein interfaceObservablePath
-
onDelete
public void onDelete(Command command)
- Specified by:
onDeletein interfaceObservablePath
-
onUpdate
public void onUpdate(Command command)
- Specified by:
onUpdatein interfaceObservablePath
-
onCopy
public void onCopy(Command command)
- Specified by:
onCopyin interfaceObservablePath
-
onConcurrentRename
public void onConcurrentRename(ParameterizedCommand<ObservablePath.OnConcurrentRenameEvent> command)
- Specified by:
onConcurrentRenamein interfaceObservablePath
-
onConcurrentDelete
public void onConcurrentDelete(ParameterizedCommand<ObservablePath.OnConcurrentDelete> command)
- Specified by:
onConcurrentDeletein interfaceObservablePath
-
onConcurrentUpdate
public void onConcurrentUpdate(ParameterizedCommand<ObservablePath.OnConcurrentUpdateEvent> command)
- Specified by:
onConcurrentUpdatein interfaceObservablePath
-
onConcurrentCopy
public void onConcurrentCopy(ParameterizedCommand<ObservablePath.OnConcurrentCopyEvent> command)
- Specified by:
onConcurrentCopyin interfaceObservablePath
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.uberfire.commons.lifecycle.Disposable
-
-