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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected intbooleangenerateEndTag(int indentLevel) generateTOCItemTag(LinkDatabase linkDatabase, boolean isInlineTag, int indentLevel) protected Collection<TOCItem> intinthashCode()booleanisEquivalent(TOCItem other) True if the two items are the same, except that they come from a different source file.protected Stringprotected StringprintChildren(int tabCount) protected voidremoveChild(TOCItem child) abstract booleanvalidate(LinkDatabase linkDatabase) voidwriteContents(LinkDatabase linkDatabase, PrintWriter writer) voidwriteContents(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
-