Package org.apache.maven.doxia.index
Class IndexingSink
java.lang.Object
org.apache.maven.doxia.sink.impl.AbstractSink
org.apache.maven.doxia.sink.impl.SinkAdapter
org.apache.maven.doxia.index.IndexingSink
- All Implemented Interfaces:
org.apache.maven.doxia.logging.LogEnabled,Markup,org.apache.maven.doxia.sink.Sink
A sink implementation for index.
- Author:
- Trygve Laugstøl, Vincent Siveton
-
Field Summary
Fields inherited from interface org.apache.maven.doxia.markup.Markup
COLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STARFields inherited from interface org.apache.maven.doxia.sink.Sink
JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, NUMBERING_DECIMAL, NUMBERING_LOWER_ALPHA, NUMBERING_LOWER_ROMAN, NUMBERING_UPPER_ALPHA, NUMBERING_UPPER_ROMAN, ROLE, SECTION_LEVEL_1, SECTION_LEVEL_2, SECTION_LEVEL_3, SECTION_LEVEL_4, SECTION_LEVEL_5, SECTION_LEVEL_6 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getTitle()Getter for the fieldtitle.protected voidinit()This is called inSink.head()or inSink.close(), and can be used to set the sink into a clear state so it can be re-used.peek()peek.voidpop()Removes the IndexEntry at the top of this stack.voidpush(IndexEntry entry) Pushes an IndexEntry onto the top of this stack.voidCreates and pushes a new IndexEntry onto the top of this stack.voidsection1()voidvoidsection2()voidvoidsection3()voidvoidsection4()voidvoidsection5()voidvoidvoidsectionTitle1_.voidvoidsectionTitle2_.voidvoidsectionTitle3_.voidvoidsectionTitle4_.voidvoidsectionTitle5_.voidvoidtitle()voidtitle_()Methods inherited from class org.apache.maven.doxia.sink.impl.SinkAdapter
address, address, address_, anchor, anchor, anchor_, article, article, article_, author, author, author_, blockquote, blockquote, blockquote_, body, body, body_, bold, bold_, comment, content, content, content_, data, data, data_, date, date, date_, definedTerm, definedTerm, definedTerm_, definition, definition, definition_, definitionList, definitionList, definitionList_, definitionListItem, definitionListItem, definitionListItem_, division, division, division_, figure, figure, figure_, figureCaption, figureCaption, figureCaption_, figureGraphics, figureGraphics, flush, footer, footer, footer_, head, head, head_, header, header, header_, horizontalRule, horizontalRule, inline, inline, inline_, italic, italic_, lineBreak, lineBreak, lineBreakOpportunity, lineBreakOpportunity, link, link, link_, list, list, list_, listItem, listItem, listItem_, monospaced, monospaced_, navigation, navigation, navigation_, nonBreakingSpace, numberedList, numberedList, numberedList_, numberedListItem, numberedListItem, numberedListItem_, pageBreak, paragraph, paragraph, paragraph_, rawText, section, section_, section6, section6_, sectionTitle, sectionTitle, sectionTitle_, sectionTitle_, sectionTitle6, sectionTitle6_, sidebar, sidebar, sidebar_, table, table, table_, tableCaption, tableCaption, tableCaption_, tableCell, tableCell, tableCell, tableCell_, tableHeaderCell, tableHeaderCell, tableHeaderCell, tableHeaderCell_, tableRow, tableRow, tableRow_, tableRows, tableRows_, text, time, time, time_, title, unknown, verbatim, verbatim, verbatim_Methods inherited from class org.apache.maven.doxia.sink.impl.AbstractSink
enableLogging, getLog, unifyEOLs
-
Constructor Details
-
IndexingSink
Default constructor.- Parameters:
sectionEntry- The first index entry.
-
-
Method Details
-
getTitle
Getter for the field
title.- Returns:
- the title
-
title
public void title()- Specified by:
titlein interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
titlein classSinkAdapter
-
section1
public void section1()- Specified by:
section1in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
section1in classSinkAdapter
-
sectionTitle1
public void sectionTitle1()- Specified by:
sectionTitle1in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
sectionTitle1in classSinkAdapter
-
title_
public void title_()- Specified by:
title_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
title_in classSinkAdapter
-
sectionTitle1_
public void sectionTitle1_()sectionTitle1_.
- Specified by:
sectionTitle1_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
sectionTitle1_in classSinkAdapter
-
section1_
public void section1_()- Specified by:
section1_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
section1_in classSinkAdapter
-
section2
public void section2()- Specified by:
section2in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
section2in classSinkAdapter
-
sectionTitle2
public void sectionTitle2()- Specified by:
sectionTitle2in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
sectionTitle2in classSinkAdapter
-
sectionTitle2_
public void sectionTitle2_()sectionTitle2_.
- Specified by:
sectionTitle2_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
sectionTitle2_in classSinkAdapter
-
section2_
public void section2_()- Specified by:
section2_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
section2_in classSinkAdapter
-
section3
public void section3()- Specified by:
section3in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
section3in classSinkAdapter
-
sectionTitle3
public void sectionTitle3()- Specified by:
sectionTitle3in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
sectionTitle3in classSinkAdapter
-
sectionTitle3_
public void sectionTitle3_()sectionTitle3_.
- Specified by:
sectionTitle3_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
sectionTitle3_in classSinkAdapter
-
section3_
public void section3_()- Specified by:
section3_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
section3_in classSinkAdapter
-
section4
public void section4()- Specified by:
section4in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
section4in classSinkAdapter
-
sectionTitle4
public void sectionTitle4()- Specified by:
sectionTitle4in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
sectionTitle4in classSinkAdapter
-
sectionTitle4_
public void sectionTitle4_()sectionTitle4_.
- Specified by:
sectionTitle4_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
sectionTitle4_in classSinkAdapter
-
section4_
public void section4_()- Specified by:
section4_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
section4_in classSinkAdapter
-
section5
public void section5()- Specified by:
section5in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
section5in classSinkAdapter
-
sectionTitle5
public void sectionTitle5()- Specified by:
sectionTitle5in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
sectionTitle5in classSinkAdapter
-
sectionTitle5_
public void sectionTitle5_()sectionTitle5_.
- Specified by:
sectionTitle5_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
sectionTitle5_in classSinkAdapter
-
section5_
public void section5_()- Specified by:
section5_in interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
section5_in classSinkAdapter
-
text
- Specified by:
textin interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
textin classSinkAdapter
-
pushNewEntry
public void pushNewEntry()Creates and pushes a new IndexEntry onto the top of this stack. -
push
Pushes an IndexEntry onto the top of this stack.- Parameters:
entry- to put.
-
pop
public void pop()Removes the IndexEntry at the top of this stack. -
peek
peek.
- Returns:
- Looks at the IndexEntry at the top of this stack.
-
close
public void close()- Specified by:
closein interfaceorg.apache.maven.doxia.sink.Sink- Overrides:
closein classSinkAdapter
-
init
protected void init()This is called inSink.head()or inSink.close(), and can be used to set the sink into a clear state so it can be re-used.- Overrides:
initin classAbstractSink
-