org.jostraca
Class Block

java.lang.Object
  extended byorg.jostraca.Block

public class Block
extends java.lang.Object

Container for parsed blocks of template source.


Nested Class Summary
static class Block.Type
           
 
Field Summary
static Block.Type TYPE_script
           
static Block.Type TYPE_text
           
 
Constructor Summary
Block(Block.Type pType, java.lang.String pContent)
          Construct a block of parsed text.
 
Method Summary
 boolean equals(Block pBlock)
           
 boolean equals(java.lang.Object pObject)
           
 java.lang.String getContent()
          Get Content.
 Block.Type getType()
          Get Type.
 boolean isScript()
          True if block type is script.
 boolean isText()
          True if block type is text.
 java.lang.String toString()
          Description of Block.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_text

public static final Block.Type TYPE_text

TYPE_script

public static final Block.Type TYPE_script
Constructor Detail

Block

public Block(Block.Type pType,
             java.lang.String pContent)
Construct a block of parsed text.

Parameters:
pType - (not validated) The type of the block.
pContent - (not validated) The content of the block.
Method Detail

getContent

public java.lang.String getContent()
Get Content.


getType

public Block.Type getType()
Get Type.


isText

public boolean isText()
True if block type is text.


isScript

public boolean isScript()
True if block type is script.


toString

public java.lang.String toString()
Description of Block.


equals

public boolean equals(java.lang.Object pObject)

equals

public boolean equals(Block pBlock)


Copyright © 2000-2002 Richard Rodger