org.melati.template
Class WMLAttributeMarkupLanguage

Package class diagram package WMLAttributeMarkupLanguage
java.lang.Object
  extended by org.melati.template.AbstractMarkupLanguage
      extended by org.melati.template.HTMLLikeMarkupLanguage
          extended by org.melati.template.WMLMarkupLanguage
              extended by org.melati.template.WMLAttributeMarkupLanguage
All Implemented Interfaces:
AttributeMarkupLanguage, MarkupLanguage

public class WMLAttributeMarkupLanguage
extends WMLMarkupLanguage
implements MarkupLanguage, AttributeMarkupLanguage

A WML based markup language suitable for markup within an attribute tag. WML has same entities as HTML.


Field Summary
 
Fields inherited from class org.melati.template.AbstractMarkupLanguage
DATE_FIELD_POSSIBILITIES_LIMIT, FIELD_POSSIBILITIES_LIMIT, locale, melati, templetLoader
 
Constructor Summary
WMLAttributeMarkupLanguage(WMLMarkupLanguage wml)
          Constructor from a normal MarkupLanguage.
 
Method Summary
protected  void render(Object o, MelatiWriter writer)
          Attribute markup languages do not have templets, so don't look for one.
 String rendered(AccessPoemException e)
          AccessPoemException is handled differently in an Attribute than it is in the main body of a page.
 
Methods inherited from class org.melati.template.WMLMarkupLanguage
getAttr
 
Methods inherited from class org.melati.template.HTMLLikeMarkupLanguage
decoded, encoded, escaped, escaped, render, 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.AttributeMarkupLanguage
render
 
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

WMLAttributeMarkupLanguage

public WMLAttributeMarkupLanguage(WMLMarkupLanguage wml)
Constructor from a normal MarkupLanguage.

Parameters:
wml - the WMLMarkupLanguage to be based upon
Method Detail

rendered

public String rendered(AccessPoemException e)
AccessPoemException is handled differently in an Attribute than it is in the main body of a page. 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:
(org.melati.poem.AccessPoemException)

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.