Class ViewModel
- java.lang.Object
-
- io.virtdata.docsys.metafs.fs.renderfs.model.ViewModel
-
-
Constructor Summary
Constructors Constructor Description ViewModel(java.nio.file.Path sourcePath, java.nio.file.Path targetPath)
-
Method Summary
Modifier and Type Method Description java.util.List<java.nio.file.Path>getBreadcrumbs()TreeViewgetFileTree()ActualFsViewgetFs()ViewModelgetInner()PathViewgetPath()ListView<java.nio.file.Path>getPaths()java.lang.StringgetRendered()RenderedContentgetRenderedContent()java.nio.file.PathgetTarget()TopicViewsgetTopics()longgetVersion()The version of an element can depend on more than one property internally.booleanisValid()If all the versioned parts of this elements are equal or higher version than all of the dependencies, then this element is valid.voidsetInner(ViewModel innerRender)voidsetRenderedContent(RenderedContent rendered)java.lang.StringtoString()
-
-
-
Method Detail
-
getTarget
public java.nio.file.Path getTarget()
-
getFs
public ActualFsView getFs()
-
getBreadcrumbs
public java.util.List<java.nio.file.Path> getBreadcrumbs()
-
getPath
public PathView getPath()
-
getPaths
public ListView<java.nio.file.Path> getPaths()
-
getFileTree
public TreeView getFileTree()
-
setInner
public void setInner(ViewModel innerRender)
-
getInner
public ViewModel getInner()
-
setRenderedContent
public void setRenderedContent(RenderedContent rendered)
-
getRendered
public java.lang.String getRendered()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getTopics
public TopicViews getTopics()
-
getRenderedContent
public RenderedContent getRenderedContent()
-
getVersion
public long getVersion()
Description copied from interface:VersionedThe version of an element can depend on more than one property internally. Informally, the version of an element is the the lowest value of all the version properties of that element. This is a conservative back reference to the oldest contributing piece of data for that element, such that invalidation occurs based on the possibility that versions are not in sync, rather than any specific proof that they aren't.- Specified by:
getVersionin interfaceVersioned- Returns:
- The version of the oldest part of a versioned element.
-
isValid
public boolean isValid()
Description copied from interface:VersionedIf all the versioned parts of this elements are equal or higher version than all of the dependencies, then this element is valid. Said differently, if the highest version of all dependencies is equal to or lower than the lowest version of all the parts, then this element is valid.
-
-