org.melati.template
Class HTMLAttributeMarkupLanguage

Package class diagram package HTMLAttributeMarkupLanguage
java.lang.Object
  extended by org.melati.template.AbstractMarkupLanguage
      extended by org.melati.template.HTMLLikeMarkupLanguage
          extended by org.melati.template.HTMLMarkupLanguage
              extended by 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.


Field Summary
 
Fields inherited from class org.melati.template.AbstractMarkupLanguage
DATE_FIELD_POSSIBILITIES_LIMIT, FIELD_POSSIBILITIES_LIMIT, locale, melati, templetLoader
 
Constructor Summary
HTMLAttributeMarkupLanguage(HTMLMarkupLanguage html)
          Constructor given an HTMLMarkupLanguage.
 
Method Summary
protected  void render(Object o, MelatiWriter writer)
          Attribute markup languages do not have templets, so don't look for one.
 void render(String s, MelatiWriter writer)
          Do entity substitution.
 String rendered(AccessPoemException e)
          AccessPoemException is treated differently in an Atribute than in the main body of a page.
 
Methods inherited from class org.melati.template.HTMLMarkupLanguage
getAttr
 
Methods inherited from class org.melati.template.HTMLLikeMarkupLanguage
decoded, encoded, escaped, escaped, renderMarkup
 
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.melati.template.MarkupLanguage
decoded, encoded, escaped, escaped, getAttr, getName, input, inputAs, rendered, rendered, rendered, rendered, renderedMarkup, renderedStart, searchInput
 

Constructor Detail

HTMLAttributeMarkupLanguage

public HTMLAttributeMarkupLanguage(HTMLMarkupLanguage html)
Constructor given an HTMLMarkupLanguage.

Parameters:
html - the HTMLMarkupLanguage the attribute language is relevant to
Method Detail

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 rendered
writer - - 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 rendered
writer - - 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.