net.sf.xslthl
Class StyledBlock
java.lang.Object
net.sf.xslthl.Block
net.sf.xslthl.StyledBlock
public class StyledBlock
- extends Block
A block with a style
Field Summary |
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 |
protected java.lang.String |
style
The style name |
Fields inherited from class net.sf.xslthl.Block |
text |
Constructor Summary |
StyledBlock(java.lang.String text,
java.lang.String style)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
style
protected java.lang.String style
- The style name
StyledBlock
public StyledBlock(java.lang.String text,
java.lang.String style)
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