Interface Topic
-
- All Known Implementing Classes:
FileTopic,HeaderTopic,PathTopic
public interface Topic
-
-
Method Summary
Modifier and Type Method Description voidaddSubTopic(Topic topic)Add a subtopic to this topic.java.lang.StringgetId()Return the self-same generated ref id that will be rendered in HTML.default java.lang.StringgetIndent()default java.lang.StringgetIndent2()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 i)
-
-
-
Method Detail
-
getName
java.lang.String getName()
-
getId
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.- Returns:
- A simple text based ref id
-
getPath
java.lang.String getPath()
- Returns:
- the logical path associated with this topic, without the extension.
-
getLevel
int getLevel()
Get a level associated with this topic. Lower numbers represent broader topics. The is akin to "indentation level".- Returns:
- The level of nesting for this topic
-
setLevel
void setLevel(int i)
-
getSubTopics
java.util.LinkedList<Topic> getSubTopics()
Get subtopics that are associated with this topic, or contained by this topic.- Returns:
- A list of topics
-
addSubTopic
void addSubTopic(Topic topic)
Add a subtopic to this topic.- Parameters:
topic- a ne subtopic
-
getIndent
default java.lang.String getIndent()
-
getIndent2
default java.lang.String getIndent2()
-
-