org.melati.template
Class HTMLAttributeMarkupLanguage
java.lang.Object
org.melati.template.AbstractMarkupLanguage
org.melati.template.HTMLLikeMarkupLanguage
org.melati.template.HTMLMarkupLanguage
org.melati.template.HTMLAttributeMarkupLanguage
- All Implemented Interfaces:
- AttributeMarkupLanguage, MarkupLanguage
public class HTMLAttributeMarkupLanguage
- extends HTMLMarkupLanguage
- implements MarkupLanguage, AttributeMarkupLanguage
An HTML based markup language suitable for markup within an
attribute tag.
The significant difference is that newlines are not translated into break
tags.
Methods inherited from class org.melati.template.AbstractMarkupLanguage |
expandTemplet, getName, input, input, inputAs, render, render, render, render, rendered, rendered, rendered, rendered, renderedMarkup, renderedStart, renderStart, searchInput, toString |
Methods inherited from interface org.melati.template.MarkupLanguage |
decoded, encoded, escaped, escaped, getAttr, getName, input, inputAs, rendered, rendered, rendered, rendered, renderedMarkup, renderedStart, searchInput |
HTMLAttributeMarkupLanguage
public HTMLAttributeMarkupLanguage(HTMLMarkupLanguage html)
- Constructor given an HTMLMarkupLanguage.
- Parameters:
html
- the HTMLMarkupLanguage the attribute language is relevant to
rendered
public String rendered(AccessPoemException e)
- AccessPoemException is treated differently in an Atribute than
in the main body of a page.
- Specified by:
rendered
in interface AttributeMarkupLanguage
- Parameters:
e
- an Exception to render
- Returns:
- a String representation of the Exception
- See Also:
AttributeMarkupLanguage.rendered(
org.melati.poem.AccessPoemException)
render
public void render(String s,
MelatiWriter writer)
- Do entity substitution.
- Specified by:
render
in interface AttributeMarkupLanguage
- Overrides:
render
in class HTMLLikeMarkupLanguage
- Parameters:
s
- - the string to be renderedwriter
- - the MelatiWriter to render this String to- See Also:
AttributeMarkupLanguage.render(java.lang.String,
org.melati.util.MelatiWriter)
render
protected void render(Object o,
MelatiWriter writer)
- Attribute markup languages do not have templets, so don't look for one.
Render an Object in a MarkupLanguage specific way, rendering to
a supplied Writer.
NOTE The context always contains objects with the names melati, object and ml
- Overrides:
render
in class AbstractMarkupLanguage
- Parameters:
o
- - the Object to be renderedwriter
- - the MelatiWriter to render this Object to- See Also:
AbstractMarkupLanguage.render(java.lang.Object, org.melati.util.MelatiWriter)
Copyright © 2000-2010 PanEris. All Rights Reserved.