public class OutlineParser
extends java.lang.Object
a
markup language
to determine where headings start and end.OutlineItem
Modifier and Type | Class and Description |
---|---|
protected class |
OutlineParser.OutlineBuilder
A document builder that creates the outline structure based on headings in the document
|
Constructor and Description |
---|
OutlineParser() |
OutlineParser(MarkupLanguage markupLanguage) |
Modifier and Type | Method and Description |
---|---|
protected OutlineItem |
createOutlineItem(OutlineItem current,
int level,
java.lang.String id,
int offset,
int length,
java.lang.String label) |
DocumentBuilder |
createOutlineUpdater(OutlineItem rootItem) |
OutlineItem |
createRootItem() |
int |
getLabelMaxLength() |
MarkupLanguage |
getMarkupLanguage() |
protected boolean |
isBlocksOnly()
normally outline parsing is performed only on blocks.
|
OutlineItem |
parse(OutlineItem root,
java.lang.String markup) |
OutlineItem |
parse(java.lang.String markup) |
void |
setLabelMaxLength(int labelMaxLength) |
void |
setMarkupLanguage(MarkupLanguage markupLanguage) |
public OutlineParser(MarkupLanguage markupLanguage)
public OutlineParser()
public int getLabelMaxLength()
public void setLabelMaxLength(int labelMaxLength)
public OutlineItem parse(java.lang.String markup)
public MarkupLanguage getMarkupLanguage()
public void setMarkupLanguage(MarkupLanguage markupLanguage)
public OutlineItem createRootItem()
public OutlineItem parse(OutlineItem root, java.lang.String markup)
protected boolean isBlocksOnly()
protected OutlineItem createOutlineItem(OutlineItem current, int level, java.lang.String id, int offset, int length, java.lang.String label)
public DocumentBuilder createOutlineUpdater(OutlineItem rootItem)
Copyright © 2007, 2013 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html