All Packages Class Hierarchy This Package Previous Next Index
Class com.kvisco.xsl.Formatter
com.kvisco.xsl.Formatter
- public abstract class Formatter
An abstract class for processing Formatting Objects.
Extend this class if you wish to do anything meaningful with
Formatting Objects.
- Author:
- Keith Visco
-
BLOCK_LEVEL_BOX_TAG
- The tag name of a block-level-box formatting object
-
BLOCK_LEVEL_BOX_TYPE
- An int value denoting a block-level-box formatting object
-
BLOCK_TAG
- The tag name of a block formatting object
-
BLOCK_TYPE
- An int value denoting a block formatting object
-
CHARACTER_TAG
- The tag name of a character formatting object
-
CHARACTER_TYPE
- An int value denoting a character formatting object
-
flowObjectCodes
- A Hashtable of formatting object tag names to values.
-
GRAPHIC_TAG
- The tag name of a graphic formatting object
-
GRAPHIC_TYPE
- An int value denoting a graphic formatting object
-
INLINE_BOX_TAG
- The tag name of a inline-box formatting object
-
INLINE_BOX_TYPE
- An int value denoting a inline-box formatting object
-
LINK_END_LOCATOR_TAG
- The tag name of a link-end-locator formatting object
-
LINK_END_LOCATOR_TYPE
- An int value denoting a line-end-locator formatting object
-
LINK_TAG
- The tag name of a link formatting object
-
LINK_TYPE
- An int value denoting a link formatting object
-
LIST_ITEM_LABEL_TAG
- The tag name of a list-item-label formatting object
-
LIST_ITEM_LABEL_TYPE
- An int value denoting a list-item-label formatting object
-
LIST_ITEM_TAG
- The tag name of a list-item formatting object
-
LIST_ITEM_TYPE
- An int value denoting a list-item formatting object
-
LIST_TAG
- The tag name of a list formatting object
-
LIST_TYPE
- An int value denoting a list formatting object
-
PAGE_NUMBER_TAG
- The tag name of a page-number formatting object
-
PAGE_NUMBER_TYPE
- An int value denoting a page-number formatting object
-
PAGE_SEQUENCE_TAG
- The tag name of a page-sequence formatting object
-
PAGE_SEQUENCE_TYPE
- An int value denoting a page-sequence formatting object
-
QUEUE_TAG
- The tag name of a queue formatting object
-
QUEUE_TYPE
- An int value denoting a queue formatting object
-
RULE_GRAPHIC_TAG
- The tag name of a rule-graphic formatting object
-
RULE_GRAPHIC_TYPE
- An int value denoting a rule-graphic formatting object
-
SCORE_TAG
- The tag name of a score formatting object
-
SCORE_TYPE
- An int value denoting a score formatting object
-
SEQUENCE_TAG
- The tag name of a sequence formatting object
-
SEQUENCE_TYPE
- An int value denoting a sequence formatting object
-
SIMPLE_PAGE_SEQUENCE_TAG
- The tag name of a simple-page-sequence formatting object
-
SIMPLE_PAGE_SEQUENCE_TYPE
- An int value denoting a simple-page-sequence formatting object
-
Formatter()
- Creates a new Formatter
-
createCodeTable()
- Creates a Hashtable of Formatting Object names and values
The values are good for switching on.
-
getIndentResult()
- Returns true if this Formatter is allowed to indent the result
-
getIndentSize()
- Returns the indent size for this Formatter
-
process(Document, PrintWriter)
- Processes the given set of nodes
-
setIndentResult(boolean)
- Sets whether or not this Formatter can indent the result
-
setIndentSize(int)
- Sets the size of the indentation
PAGE_SEQUENCE_TYPE
public static final int PAGE_SEQUENCE_TYPE
- An int value denoting a page-sequence formatting object
SIMPLE_PAGE_SEQUENCE_TYPE
public static final int SIMPLE_PAGE_SEQUENCE_TYPE
- An int value denoting a simple-page-sequence formatting object
SEQUENCE_TYPE
public static final int SEQUENCE_TYPE
- An int value denoting a sequence formatting object
QUEUE_TYPE
public static final int QUEUE_TYPE
- An int value denoting a queue formatting object
LIST_TYPE
public static final int LIST_TYPE
- An int value denoting a list formatting object
LIST_ITEM_TYPE
public static final int LIST_ITEM_TYPE
- An int value denoting a list-item formatting object
LIST_ITEM_LABEL_TYPE
public static final int LIST_ITEM_LABEL_TYPE
- An int value denoting a list-item-label formatting object
BLOCK_TYPE
public static final int BLOCK_TYPE
- An int value denoting a block formatting object
CHARACTER_TYPE
public static final int CHARACTER_TYPE
- An int value denoting a character formatting object
RULE_GRAPHIC_TYPE
public static final int RULE_GRAPHIC_TYPE
- An int value denoting a rule-graphic formatting object
GRAPHIC_TYPE
public static final int GRAPHIC_TYPE
- An int value denoting a graphic formatting object
SCORE_TYPE
public static final int SCORE_TYPE
- An int value denoting a score formatting object
INLINE_BOX_TYPE
public static final int INLINE_BOX_TYPE
- An int value denoting a inline-box formatting object
BLOCK_LEVEL_BOX_TYPE
public static final int BLOCK_LEVEL_BOX_TYPE
- An int value denoting a block-level-box formatting object
PAGE_NUMBER_TYPE
public static final int PAGE_NUMBER_TYPE
- An int value denoting a page-number formatting object
LINK_TYPE
public static final int LINK_TYPE
- An int value denoting a link formatting object
LINK_END_LOCATOR_TYPE
public static final int LINK_END_LOCATOR_TYPE
- An int value denoting a line-end-locator formatting object
PAGE_SEQUENCE_TAG
public static final String PAGE_SEQUENCE_TAG
- The tag name of a page-sequence formatting object
SIMPLE_PAGE_SEQUENCE_TAG
public static final String SIMPLE_PAGE_SEQUENCE_TAG
- The tag name of a simple-page-sequence formatting object
SEQUENCE_TAG
public static final String SEQUENCE_TAG
- The tag name of a sequence formatting object
QUEUE_TAG
public static final String QUEUE_TAG
- The tag name of a queue formatting object
LIST_TAG
public static final String LIST_TAG
- The tag name of a list formatting object
LIST_ITEM_TAG
public static final String LIST_ITEM_TAG
- The tag name of a list-item formatting object
LIST_ITEM_LABEL_TAG
public static final String LIST_ITEM_LABEL_TAG
- The tag name of a list-item-label formatting object
BLOCK_TAG
public static final String BLOCK_TAG
- The tag name of a block formatting object
CHARACTER_TAG
public static final String CHARACTER_TAG
- The tag name of a character formatting object
RULE_GRAPHIC_TAG
public static final String RULE_GRAPHIC_TAG
- The tag name of a rule-graphic formatting object
GRAPHIC_TAG
public static final String GRAPHIC_TAG
- The tag name of a graphic formatting object
SCORE_TAG
public static final String SCORE_TAG
- The tag name of a score formatting object
INLINE_BOX_TAG
public static final String INLINE_BOX_TAG
- The tag name of a inline-box formatting object
BLOCK_LEVEL_BOX_TAG
public static final String BLOCK_LEVEL_BOX_TAG
- The tag name of a block-level-box formatting object
PAGE_NUMBER_TAG
public static final String PAGE_NUMBER_TAG
- The tag name of a page-number formatting object
LINK_TAG
public static final String LINK_TAG
- The tag name of a link formatting object
LINK_END_LOCATOR_TAG
public static final String LINK_END_LOCATOR_TAG
- The tag name of a link-end-locator formatting object
flowObjectCodes
public static Hashtable flowObjectCodes
- A Hashtable of formatting object tag names to values.
Formatter
public Formatter()
- Creates a new Formatter
createCodeTable
public static Hashtable createCodeTable()
- Creates a Hashtable of Formatting Object names and values
The values are good for switching on.
- Returns:
- the Hashtable of formatting object names and type values
getIndentResult
public boolean getIndentResult()
- Returns true if this Formatter is allowed to indent the result
- Returns:
- true if this Formatter is allowed to indent the result
getIndentSize
public int getIndentSize()
- Returns the indent size for this Formatter
- Returns:
- the indent size for this Formatter
setIndentResult
public void setIndentResult(boolean indentResult)
- Sets whether or not this Formatter can indent the result
- Parameters:
- indentResult - the boolean indicating whether or not
to allow indentation of the result
setIndentSize
public void setIndentSize(int size)
- Sets the size of the indentation
- Parameters:
- size - the number of spaces to indent, if indentation is allowed.
process
public abstract void process(Document document,
PrintWriter output)
- Processes the given set of nodes
- Parameters:
- document - the Document to process
- output - the PrintStream for IO during processing.
- See Also:
- Document
All Packages Class Hierarchy This Package Previous Next Index