java.lang.Object
com.opensymphony.module.sitemesh.html.State

public final class State extends Object
The Class State.
  • Constructor Details

    • State

      public State()
  • Method Details

    • addRule

      public void addRule(TagRule rule)
      Adds the rule.
      Parameters:
      rule - the rule
    • addTextFilter

      public void addTextFilter(TextFilter textFilter)
      Adds the text filter.
      Parameters:
      textFilter - the text filter
    • shouldProcessTag

      public boolean shouldProcessTag(String tagName)
      Should process tag.
      Parameters:
      tagName - the tag name
      Returns:
      true, if successful
    • getRule

      public TagRule getRule(String tagName)
      Gets the rule.
      Parameters:
      tagName - the tag name
      Returns:
      the rule
    • addListener

      public void addListener(StateChangeListener listener)
      Adds the listener.
      Parameters:
      listener - the listener
    • endOfState

      public void endOfState()
      End of state.
    • handleText

      public void handleText(Text text, HTMLProcessorContext context)
      Handle text.
      Parameters:
      text - the text
      context - the context