Package net.sf.xslthl

Class StyledBlock


  • public class StyledBlock
    extends Block
    A block with a style
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String HIDDEN_STYLE
      Remove this part from the result
      static java.lang.String NO_STYLE
      Do not add a style, just "block" it
    • Constructor Summary

      Constructors 
      Constructor Description
      StyledBlock​(java.lang.String text, java.lang.String style)  
    • Field Detail

      • NO_STYLE

        public static final java.lang.String NO_STYLE
        Do not add a style, just "block" it
        See Also:
        Constant Field Values
      • HIDDEN_STYLE

        public static final java.lang.String HIDDEN_STYLE
        Remove this part from the result
        See Also:
        Constant Field Values
    • Constructor Detail

      • StyledBlock

        public StyledBlock​(java.lang.String text,
                           java.lang.String style)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Block
      • getText

        public java.lang.String getText()
        Overrides:
        getText in class Block
        Returns:
        the text within this block
      • getStyle

        public java.lang.String getStyle()
        Returns:
        the style name
      • isStyled

        public boolean isStyled()
        Overrides:
        isStyled in class Block
        Returns:
        true if this block contains style information