net.sf.xslthl
Class StyledBlock

java.lang.Object
  extended by net.sf.xslthl.Block
      extended by net.sf.xslthl.StyledBlock

public class StyledBlock
extends Block

A block with a style


Field Summary
static String HIDDEN_STYLE
          Remove this part from the result
static String NO_STYLE
          Do not add a style, just "block" it
protected  String style
          The style name
 
Fields inherited from class net.sf.xslthl.Block
text
 
Constructor Summary
StyledBlock(String text, String style)
           
 
Method Summary
 String getStyle()
           
 String getText()
           
 boolean isStyled()
           
 String toString()
           
 
Methods inherited from class net.sf.xslthl.Block
empty, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_STYLE

public static final String NO_STYLE
Do not add a style, just "block" it

See Also:
Constant Field Values

HIDDEN_STYLE

public static final String HIDDEN_STYLE
Remove this part from the result

See Also:
Constant Field Values

style

protected String style
The style name

Constructor Detail

StyledBlock

public StyledBlock(String text,
                   String style)
Method Detail

toString

public String toString()
Overrides:
toString in class Block

getText

public String getText()
Overrides:
getText in class Block
Returns:
the text within this block

getStyle

public String getStyle()
Returns:
the style name

isStyled

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


Copyright © 2005-2014. All Rights Reserved.