|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.template.AbstractMarkupLanguage org.melati.template.HTMLLikeMarkupLanguage
public abstract class HTMLLikeMarkupLanguage
A Markup language with syntax similar to HTML.
Field Summary |
---|
Fields inherited from class org.melati.template.AbstractMarkupLanguage |
---|
DATE_FIELD_POSSIBILITIES_LIMIT, FIELD_POSSIBILITIES_LIMIT, locale, melati, templetLoader |
Constructor Summary | |
---|---|
protected |
HTMLLikeMarkupLanguage(String name,
HTMLLikeMarkupLanguage other)
|
|
HTMLLikeMarkupLanguage(String name,
Melati melati,
TempletLoader templetLoader,
PoemLocale locale)
Constructor. |
Method Summary | |
---|---|
String |
decoded(String s)
Decode a UTF-8 URL encoded string. |
String |
encoded(String s)
Encode a String as a UTF-8 URL. |
String |
escaped(Persistent o)
Get the DisplayString of a Persistent and
escape that using the current locale and a MEDIUM DateFormat. |
String |
escaped(String s)
Escape a String. |
void |
render(String s,
MelatiWriter writer)
Render, directly to the output stream, substituting entities for high value ASCII characters and new line characters. |
void |
renderMarkup(String s,
MelatiWriter writer)
Render a markup fragment in a MarkupLanguage specific way to a supplied MelatiWriter. |
Methods inherited from class org.melati.template.AbstractMarkupLanguage |
---|
expandTemplet, getName, input, input, inputAs, render, render, render, render, render, rendered, rendered, rendered, rendered, renderedMarkup, renderedStart, renderStart, searchInput, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.melati.template.MarkupLanguage |
---|
getAttr, getName, input, inputAs, rendered, rendered, rendered, rendered, renderedMarkup, renderedStart, searchInput |
Constructor Detail |
---|
public HTMLLikeMarkupLanguage(String name, Melati melati, TempletLoader templetLoader, PoemLocale locale)
protected HTMLLikeMarkupLanguage(String name, HTMLLikeMarkupLanguage other)
Method Detail |
---|
public void render(String s, MelatiWriter writer)
render
in class AbstractMarkupLanguage
s
- - the string to be renderedwriter
- - the MelatiWriter to render this String topublic void renderMarkup(String s, MelatiWriter writer)
renderMarkup
in class AbstractMarkupLanguage
s
- - the fragment to be renderedwriter
- - the MelatiWriter to render this String toAbstractMarkupLanguage.renderMarkup(java.lang.String, org.melati.util.MelatiWriter)
public String escaped(String s)
escaped
in interface MarkupLanguage
s
- the String to escape
public String escaped(Persistent o)
Persistent
and
escape that using the current locale and a MEDIUM DateFormat.
See org/melati/admin/SelectionWindowSelection.wm
See org/melati/admin/Update.wm
escaped
in interface MarkupLanguage
o
-
public String encoded(String s)
encoded
in interface MarkupLanguage
s
- the String to encode
MarkupLanguage.encoded(java.lang.String)
public String decoded(String s)
decoded
in interface MarkupLanguage
MarkupLanguage.decoded(java.lang.String)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |