Class PathTopic
- java.lang.Object
-
- io.virtdata.docsys.metafs.fs.renderfs.model.topics.PathTopic
-
- All Implemented Interfaces:
Topic
- Direct Known Subclasses:
FileTopic,HeaderTopic
public abstract class PathTopic extends java.lang.Object implements Topic
-
-
Constructor Summary
Constructors Constructor Description PathTopic(java.nio.file.Path path)
-
Method Summary
Modifier and Type Method Description voidaddSubTopic(Topic topic)Add a subtopic to this topic.voidaddSubTopics(java.util.Collection<Topic> topics)java.lang.StringgetId()Return the self-same generated ref id that will be rendered in HTML.intgetLevel()Get a level associated with this topic.java.lang.StringgetName()java.lang.StringgetPath()java.util.LinkedList<Topic>getSubTopics()Get subtopics that are associated with this topic, or contained by this topic.voidsetLevel(int level)voidsetName(java.lang.String name)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.virtdata.docsys.metafs.fs.renderfs.model.topics.Topic
getIndent, getIndent2
-
-
-
-
Field Detail
-
path
protected final java.nio.file.Path path
-
name
protected java.lang.String name
-
subTopics
protected java.util.LinkedList<Topic> subTopics
-
-
Method Detail
-
getId
public java.lang.String getId()
Return the self-same generated ref id that will be rendered in HTML. The rendered HTML and the parsed model of the markdown use the same generator scheme.
-
getPath
public java.lang.String getPath()
-
getLevel
public int getLevel()
Description copied from interface:TopicGet a level associated with this topic. Lower numbers represent broader topics. The is akin to "indentation level".
-
getSubTopics
public java.util.LinkedList<Topic> getSubTopics()
Description copied from interface:TopicGet subtopics that are associated with this topic, or contained by this topic.- Specified by:
getSubTopicsin interfaceTopic- Returns:
- A list of topics
-
addSubTopics
public void addSubTopics(java.util.Collection<Topic> topics)
-
addSubTopic
public void addSubTopic(Topic topic)
Description copied from interface:TopicAdd a subtopic to this topic.- Specified by:
addSubTopicin interfaceTopic- Parameters:
topic- a ne subtopic
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setName
public void setName(java.lang.String name)
-
-