Package help.validator.model
Class TOCItem
java.lang.Object
help.validator.model.TOCItem
- Direct Known Subclasses:
TOCItemDefinition
,TOCItemExternal
,TOCItemReference
A Table of Contents entry, which is represented in the help output as an xml tag.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected int
boolean
generateEndTag
(int indentLevel) generateTOCItemTag
(LinkDatabase linkDatabase, boolean isInlineTag, int indentLevel) protected Collection
<TOCItem> int
int
hashCode()
boolean
isEquivalent
(TOCItem other) True if the two items are the same, except that they come from a different source file.protected String
protected String
printChildren
(int tabCount) protected void
removeChild
(TOCItem child) abstract boolean
validate
(LinkDatabase linkDatabase) void
writeContents
(LinkDatabase linkDatabase, PrintWriter writer) void
writeContents
(LinkDatabase linkDatabase, PrintWriter writer, int indentLevel)
-
Field Details
-
INDENTS
-
TOC_ITEM_CLOSE_TAG
- See Also:
-
textAttribute
-
targetAttribute
-
parentItem
-
-
Constructor Details
-
TOCItem
-
-
Method Details
-
validate
-
childCount
protected int childCount() -
addChild
-
removeChild
-
getChildren
-
getSortPreference
-
getLineNumber
public int getLineNumber() -
getParent
-
getSourceFile
-
getIDAttribute
-
getTextAttribute
-
getTargetAttribute
-
printChildren
-
printChildren
-
hashCode
public int hashCode() -
equals
-
isEquivalent
True if the two items are the same, except that they come from a different source file.- Parameters:
other
- the other item- Returns:
- true if equivalent
-
writeContents
-
generateTOCItemTag
-
generateEndTag
-
writeContents
-