Package help.validator.model
Class TOCItemDefinition
- java.lang.Object
-
- help.validator.model.TOCItem
-
- help.validator.model.TOCItemDefinition
-
public class TOCItemDefinition extends TOCItem
A representation of the <tocdef> tag, which is a way to define a TOC item entry in a TOC_Source.xml file.
-
-
Field Summary
-
Fields inherited from class help.validator.model.TOCItem
INDENTS, parentItem, targetAttribute, textAttribute, TOC_ITEM_CLOSE_TAG
-
-
Constructor Summary
Constructors Constructor Description TOCItemDefinition(TOCItem parentItem, java.nio.file.Path sourceTOCFile, java.lang.String ID, java.lang.String text, java.lang.String target, java.lang.String sortPreference, int lineNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
generateTOCItemTag(LinkDatabase linkDatabase, boolean isInlineTag, int indentLevel)
java.lang.String
toString()
boolean
validate(LinkDatabase linkDatabase)
-
Methods inherited from class help.validator.model.TOCItem
addChild, childCount, equals, generateEndTag, getChildren, getIDAttribute, getLineNumber, getParent, getSortPreference, getSourceFile, getTargetAttribute, getTextAttribute, hashCode, isEquivalent, printChildren, printChildren, removeChild, writeContents, writeContents
-
-
-
-
Constructor Detail
-
TOCItemDefinition
public TOCItemDefinition(TOCItem parentItem, java.nio.file.Path sourceTOCFile, java.lang.String ID, java.lang.String text, java.lang.String target, java.lang.String sortPreference, int lineNumber)
-
-
Method Detail
-
validate
public boolean validate(LinkDatabase linkDatabase)
-
generateTOCItemTag
public java.lang.String generateTOCItemTag(LinkDatabase linkDatabase, boolean isInlineTag, int indentLevel)
- Overrides:
generateTOCItemTag
in classTOCItem
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-