Class BasicSection
java.lang.Object
com.github.rvesse.airline.help.sections.common.BasicHint
com.github.rvesse.airline.help.sections.common.BasicSection
- All Implemented Interfaces:
HelpHint, HelpSection
- Direct Known Subclasses:
ExamplesSection, ExitCodesSection, ProseSection, RelatedCommandsSection
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicSection(String title, int suggestedOrder, String preamble, String postamble, HelpFormat format, String[]... blocks) -
Method Summary
Modifier and TypeMethodDescriptionGets the post-amble text that should be included at the end of the sectiongetTitle()Gets the title for the sectionintGets an integer indicating the suggested order that a help generator should include this section inMethods inherited from class BasicHint
getContentBlock, getFormat, getPreamble, numContentBlocksMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HelpHint
getContentBlock, getFormat, getPreamble, numContentBlocks
-
Field Details
-
title
-
postamble
-
order
private final int order
-
-
Constructor Details
-
BasicSection
public BasicSection(String title, int suggestedOrder, String preamble, String postamble, HelpFormat format, String[]... blocks)
-
-
Method Details
-
getTitle
Description copied from interface:HelpSectionGets the title for the section- Specified by:
getTitlein interfaceHelpSection- Returns:
- Section title
-
getPostamble
Description copied from interface:HelpSectionGets the post-amble text that should be included at the end of the section- Specified by:
getPostamblein interfaceHelpSection- Returns:
-
suggestedOrder
public int suggestedOrder()Description copied from interface:HelpSectionGets an integer indicating the suggested order that a help generator should include this section inA value of zero indicates that the help generator can decide where to place this section, a positive value indicates it should be placed after the default sections while a negative value indicates it should be placed before the default sections. There is however no guarantee that a help generator will honour the order given.
- Specified by:
suggestedOrderin interfaceHelpSection- Returns:
- Suggested order
-