public class MarkupDocument extends Object
Typesetting
Constructor and Description |
---|
MarkupDocument(String headline)
Instantiates a new markup document.
|
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String header)
Adds a header.
|
void |
addSection(MarkupSection section)
Adds a section.
|
static String |
attribute(String s)
Highlights an attribute.
|
static String |
delete(String s)
Highlights a delete.
|
List<String> |
getHeader()
Gets the header.
|
String |
getHeadline()
Gets the headline.
|
List<MarkupSection> |
getSections()
Gets the sections.
|
static String |
highlight(String s)
Highlights a string, e.g.
|
static String |
insert(String s)
Highlights an insert.
|
static String |
multiply()
Produces a multiply symbol.
|
static String |
replaceAttributes(String s,
String pre,
String post)
Replaces attributes.
|
static String |
replaceDeletes(String s,
String pre,
String post)
Replaces deletes.
|
static String |
replaceHighlights(String s,
String pre,
String post)
Replaces highlights.
|
static String |
replaceInserts(String s,
String pre,
String post)
Replaces inserts.
|
static String |
replaceMultiplication(String s,
String replacement)
Replaces multiplication.
|
static String |
replaceRightArrow(String s,
String replacement)
Replaces right arrow.
|
static String |
rightArrow()
Produces a right arrow.
|
public MarkupDocument(String headline)
headline
- the headlinepublic void addHeader(String header)
header
- the header to addpublic void addSection(MarkupSection section)
section
- the sectionpublic static final String highlight(String s)
s
- the string to highlightpublic static final String insert(String s)
s
- the string to highlightpublic static final String delete(String s)
s
- the string to highlightpublic static final String attribute(String s)
s
- the string to highlightpublic static final String rightArrow()
public static final String multiply()
public List<MarkupSection> getSections()
public String getHeadline()
public static final String replaceHighlights(String s, String pre, String post)
s
- the string containing highlightspre
- the opening, e.g. <em>post
- the closing, e.g. </em>public static final String replaceInserts(String s, String pre, String post)
s
- the string containing insertspre
- the opening, e.g. <ins>post
- the closing, e.g. </ins>public static final String replaceDeletes(String s, String pre, String post)
s
- the string containing deletespre
- the opening, e.g. <del>post
- the closing, e.g. </del>public static final String replaceAttributes(String s, String pre, String post)
s
- the string containing attributespre
- the opening, e.g. <attr>post
- the closing, e.g. </attr>public static final String replaceMultiplication(String s, String replacement)
s
- the string containing multiplicationsreplacement
- the replacement, e.g. "*"Copyright © 2014 SEMS project @ University of Rostock. All rights reserved.