org.apache.myfaces.trinidadinternal.util
Class FormattedTextParser.ElementInfo

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.util.FormattedTextParser.ElementInfo
Direct Known Subclasses:
FormattedTextParser.DefaultElementInfo
Enclosing class:
FormattedTextParser

public abstract static class FormattedTextParser.ElementInfo
extends java.lang.Object

Abstract representation of an element type.


Constructor Summary
FormattedTextParser.ElementInfo(java.lang.String name)
          Create an ElementInfo.
 
Method Summary
abstract  void endElement(javax.faces.context.FacesContext context)
          Called to render the results of leaving this element.
 java.lang.String getName()
          Returns the name of the element defined by this object.
 boolean isCloseRequired()
          If false, the element does not have to be forcibly closed, but can be implicitly closed.
 boolean isEmptyElement()
          If true, this element must be empty.
abstract  void startElement(javax.faces.context.FacesContext context)
          Called to render the results of entering this element.
abstract  void writeHRef(javax.faces.context.FacesContext context, java.lang.String href)
          Called to write an HRef attribute.
abstract  void writeInlineStyle(javax.faces.context.FacesContext context, java.lang.String style)
          Called to write out an inline style attribute.
abstract  void writeSize(javax.faces.context.FacesContext context, java.lang.String style)
          Called to write out a size attribute.
abstract  void writeStyleClass(javax.faces.context.FacesContext context, java.lang.String styleClass)
          Called to write out an CSS style class attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormattedTextParser.ElementInfo

public FormattedTextParser.ElementInfo(java.lang.String name)
Create an ElementInfo.

Method Detail

getName

public java.lang.String getName()
Returns the name of the element defined by this object.


startElement

public abstract void startElement(javax.faces.context.FacesContext context)
                           throws java.io.IOException
Called to render the results of entering this element.

Throws:
java.io.IOException

endElement

public abstract void endElement(javax.faces.context.FacesContext context)
                         throws java.io.IOException
Called to render the results of leaving this element.

Throws:
java.io.IOException

writeInlineStyle

public abstract void writeInlineStyle(javax.faces.context.FacesContext context,
                                      java.lang.String style)
                               throws java.io.IOException
Called to write out an inline style attribute.

Throws:
java.io.IOException

writeHRef

public abstract void writeHRef(javax.faces.context.FacesContext context,
                               java.lang.String href)
                        throws java.io.IOException
Called to write an HRef attribute.

Throws:
java.io.IOException

writeStyleClass

public abstract void writeStyleClass(javax.faces.context.FacesContext context,
                                     java.lang.String styleClass)
                              throws java.io.IOException
Called to write out an CSS style class attribute.

Throws:
java.io.IOException

writeSize

public abstract void writeSize(javax.faces.context.FacesContext context,
                               java.lang.String style)
                        throws java.io.IOException
Called to write out a size attribute.

Throws:
java.io.IOException

isEmptyElement

public boolean isEmptyElement()
If true, this element must be empty.


isCloseRequired

public boolean isCloseRequired()
If false, the element does not have to be forcibly closed, but can be implicitly closed.



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.