Package adalid.commons.util
Class MarkupUtils
java.lang.Object
adalid.commons.util.MarkupUtils
- Author:
- Jorge Campins
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThis method builds an HTML<a>pseudo-tag, which defines a hyperlink.static StringThis method builds an HTML<b>pseudo-tag, which defines bold text without any extra importance.static StringThis method builds several HTML<b>pseudo-tags, separated byseparator.static booleancontainsHTML(String string) Returns true ifstringcontains HTML tags.static StringgetCreoleFormattedString(String string) Returnsstringreplacing the pseudo-tags with their corresponding Creole tags.static StringgetHtmlFormattedString(String string) Returnsstringreplacing the pseudo-tags with their corresponding HTML tags.static StringgetPlainTextString(String string) Returnsstringremoving the pseudo-tags.static StringgetTextFormattedString(String string) Returnsstringremoving the pseudo-tags.static StringgetXhtmlFormattedString(String string) Returnsstringreplacing the pseudo-tags with their corresponding XHTML tags.static StringThis method builds an HTML<h1>pseudo-tag, which defines a level 1 heading.static StringThis method builds an HTML<h2>pseudo-tag, which defines a level 2 heading.static StringThis method builds an HTML<h3>pseudo-tag, which defines a level 3 heading.static StringThis method builds an HTML<h4>pseudo-tag, which defines a level 4 heading.static StringThis method builds an HTML<h5>pseudo-tag, which defines a level 5 heading.static StringThis method builds an HTML<h6>pseudo-tag, which defines a level 6 heading.static StringThis method builds an HTML<i>pseudo-tag, which defines italic text.static StringThis method builds several HTML<i>pseudo-tags, separated byseparator.static StringThis method builds an HTML<i>pseudo-tag for a CSS class.static StringThis method builds an HTML<i>pseudo-tag, which defines text with a CSS class.static Stringstatic Stringstatic booleanisPseudoHTML(String string) Returns true ifstringcontains any of the HTML pseudo-tags.static StringThis method builds an HTML<mark>pseudo-tag, which defines text that should be marked or highlighted.static StringThis method builds several HTML<mark>pseudo-tags, separated byseparator.static StringThis method builds an HTML<del>pseudo-tag, which defines text that should be struck out.static StringThis method builds several HTML<del>pseudo-tags, separated byseparator.static StringThis method builds an HTML<ins>pseudo-tag, which defines text that should be underlined.static StringThis method builds several HTML<ins>pseudo-tags, separated byseparator.static StringThis method builds anHTML <ul> pseudo-tag, which defines an unordered (bulleted) list.
-
Field Details
-
AX
- See Also:
-
AY
- See Also:
-
AZ
- See Also:
-
B1
- See Also:
-
B2
- See Also:
-
CX
- See Also:
-
CY
- See Also:
-
CZ
- See Also:
-
G1
- See Also:
-
G2
- See Also:
-
I1
- See Also:
-
I2
- See Also:
-
M1
- See Also:
-
M2
- See Also:
-
S1
- See Also:
-
S2
- See Also:
-
U1
- See Also:
-
U2
- See Also:
-
H1T1
- See Also:
-
H1T2
- See Also:
-
H2T1
- See Also:
-
H2T2
- See Also:
-
H3T1
- See Also:
-
H3T2
- See Also:
-
H4T1
- See Also:
-
H4T2
- See Also:
-
H5T1
- See Also:
-
H5T2
- See Also:
-
H6T1
- See Also:
-
H6T2
- See Also:
-
BR
- See Also:
-
HT
- See Also:
-
ULLI
- See Also:
-
LILI
- See Also:
-
LIUL
- See Also:
-
NBSP
- See Also:
-
LAQUO
- See Also:
-
RAQUO
- See Also:
-
FWLTS
- See Also:
-
FWGTS
- See Also:
-
BULLET
- See Also:
-
MIDDOT
- See Also:
-
bb
- See Also:
-
hh
- See Also:
-
ii
- See Also:
-
ss
- See Also:
-
uu
- See Also:
-
ax
- See Also:
-
ay
- See Also:
-
az
- See Also:
-
b1
- See Also:
-
b2
- See Also:
-
br
- See Also:
-
cx
- See Also:
-
cy
- See Also:
-
cz
- See Also:
-
g1
- See Also:
-
g2
- See Also:
-
ht
-
i1
- See Also:
-
i2
- See Also:
-
m1
- See Also:
-
m2
- See Also:
-
s1
- See Also:
-
s2
- See Also:
-
u1
- See Also:
-
u2
- See Also:
-
h1t1
- See Also:
-
h1t2
- See Also:
-
h2t1
- See Also:
-
h2t2
- See Also:
-
h3t1
- See Also:
-
h3t2
- See Also:
-
h4t1
- See Also:
-
h4t2
- See Also:
-
h5t1
- See Also:
-
h5t2
- See Also:
-
h6t1
- See Also:
-
h6t2
- See Also:
-
ulli
- See Also:
-
lili
- See Also:
-
liul
- See Also:
-
nbsp
- See Also:
-
bullet
- See Also:
-
middot
- See Also:
-
-
Constructor Details
-
MarkupUtils
public MarkupUtils()
-
-
Method Details
-
isPseudoHTML
Returns true ifstringcontains any of the HTML pseudo-tags.- Parameters:
string- text to search for HTML pseudo-tags- Returns:
- true if
stringcontains any of the HTML pseudo-tags; otherwise false
-
containsHTML
Returns true ifstringcontains HTML tags.- Parameters:
string- text to search for HTML pseudo-tags- Returns:
- true if
stringcontains HTML tags; otherwise false
-
img
-
img
-
a
This method builds an HTML<a>pseudo-tag, which defines a hyperlink.- Parameters:
href- Specifies the URL of the page the link goes totext- string to display instead of the URL- Returns:
- an HTML
<a>pseudo-tag
-
b
This method builds an HTML<b>pseudo-tag, which defines bold text without any extra importance.- Parameters:
string- text to display in bold- Returns:
- an HTML
<b>pseudo-tag
-
b
This method builds several HTML<b>pseudo-tags, separated byseparator.- Parameters:
separator- a text to separate the pseudo-tagsstrings- one or more texts to display in bold- Returns:
- several HTML
<b>pseudo-tags, separated byseparator.
-
ic
This method builds an HTML<i>pseudo-tag for a CSS class.- Parameters:
clazz- Specifies the CSS class- Returns:
- an HTML
<i>pseudo-tag
-
ic
This method builds an HTML<i>pseudo-tag, which defines text with a CSS class.- Parameters:
clazz- Specifies the CSS classtext- string to display- Returns:
- an HTML
<i>pseudo-tag
-
i
This method builds an HTML<i>pseudo-tag, which defines italic text.- Parameters:
string- text to display in italic- Returns:
- an HTML
<i>pseudo-tag
-
i
This method builds several HTML<i>pseudo-tags, separated byseparator.- Parameters:
separator- a text to separate the pseudo-tagsstrings- one or more texts to display in italic- Returns:
- several HTML
<i>pseudo-tags, separated byseparator.
-
m
This method builds an HTML<mark>pseudo-tag, which defines text that should be marked or highlighted.- Parameters:
string- text to be marked or highlighted- Returns:
- an HTML
<mark>pseudo-tag
-
m
This method builds several HTML<mark>pseudo-tags, separated byseparator.- Parameters:
separator- a text to separate the pseudo-tagsstrings- one or more texts to be marked or highlighted- Returns:
- several HTML
<mark>pseudo-tags, separated byseparator.
-
s
This method builds an HTML<del>pseudo-tag, which defines text that should be struck out.- Parameters:
string- text to be struck out- Returns:
- an HTML
<del>pseudo-tag
-
s
This method builds several HTML<del>pseudo-tags, separated byseparator.- Parameters:
separator- a text to separate the pseudo-tagsstrings- one or more texts to be struck out- Returns:
- several HTML
<del>pseudo-tags, separated byseparator.
-
u
This method builds an HTML<ins>pseudo-tag, which defines text that should be underlined.- Parameters:
string- text to be underlined- Returns:
- an HTML
<ins>pseudo-tag
-
u
This method builds several HTML<ins>pseudo-tags, separated byseparator.- Parameters:
separator- a text to separate the pseudo-tagsstrings- one or more texts to be underlined- Returns:
- several HTML
<ins>pseudo-tags, separated byseparator.
-
ul
This method builds anHTML <ul> pseudo-tag, which defines an unordered (bulleted) list.- Parameters:
strings- one or more texts defining the list items- Returns:
- an
HTML <ul> pseudo-tag
-
h1
This method builds an HTML<h1>pseudo-tag, which defines a level 1 heading.- Parameters:
string- header text- Returns:
- an HTML
<h1>pseudo-tag
-
h2
This method builds an HTML<h2>pseudo-tag, which defines a level 2 heading.- Parameters:
string- header text- Returns:
- an HTML
<h2>pseudo-tag
-
h3
This method builds an HTML<h3>pseudo-tag, which defines a level 3 heading.- Parameters:
string- header text- Returns:
- an HTML
<h3>pseudo-tag
-
h4
This method builds an HTML<h4>pseudo-tag, which defines a level 4 heading.- Parameters:
string- header text- Returns:
- an HTML
<h4>pseudo-tag
-
h5
This method builds an HTML<h5>pseudo-tag, which defines a level 5 heading.- Parameters:
string- header text- Returns:
- an HTML
<h5>pseudo-tag
-
h6
This method builds an HTML<h6>pseudo-tag, which defines a level 6 heading.- Parameters:
string- header text- Returns:
- an HTML
<h6>pseudo-tag
-
getXhtmlFormattedString
Returnsstringreplacing the pseudo-tags with their corresponding XHTML tags.- Parameters:
string- text to search and replace the pseudo-tags- Returns:
stringwith XHTML tags
-
getHtmlFormattedString
Returnsstringreplacing the pseudo-tags with their corresponding HTML tags.- Parameters:
string- text to search and replace the pseudo-tags- Returns:
stringwith HTML tags
-
getCreoleFormattedString
Returnsstringreplacing the pseudo-tags with their corresponding Creole tags.- Parameters:
string- text to search and replace the pseudo-tags- Returns:
stringwith Creole tags
-
getPlainTextString
Returnsstringremoving the pseudo-tags.- Parameters:
string- text to search and remove the pseudo-tags- Returns:
stringwithout pseudo-tags
-
getTextFormattedString
Returnsstringremoving the pseudo-tags.- Parameters:
string- text to search and remove the pseudo-tags- Returns:
stringwithout pseudo-tags
-