de.betabeans.scroogexhtml.translator
Class XHTML10Strict

java.lang.Object
  extended by de.betabeans.scroogexhtml.translator.CustomTranslator
      extended by de.betabeans.scroogexhtml.translator.XHTMLTranslator
          extended by de.betabeans.scroogexhtml.translator.XHTML10Strict
All Implemented Interfaces:
Translator

public final class XHTML10Strict
extends XHTMLTranslator

XHTML 1.0 Strict Translator.

Author:
Michael Justin

Constructor Summary
XHTML10Strict()
          Constructor for the XHTML_10_Strict object.
 
Method Summary
 java.lang.String formatElement(java.lang.String text, CharacterProperties cp, ParagraphProperties pp)
          Format a String using the given CharacterProperties.
 boolean isTransitional()
          Check if this is a TRANSITIONAL document type.
 boolean supportsElement(java.lang.String elementName)
          Return 'false' for the "br" elementName.
 
Methods inherited from class de.betabeans.scroogexhtml.translator.XHTMLTranslator
encode, getCloseEmptyElement, getRootElement, isXMLTranslatorClass
 
Methods inherited from class de.betabeans.scroogexhtml.translator.CustomTranslator
buildLangAttribute, buildSpanTag, getDocType, getFontSizeUnit, getParagraph, getParagraph, getParagraphStyle, getStyleParam, setDocType, setFontSizeUnit, setFormatter, setParOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XHTML10Strict

public XHTML10Strict()
Constructor for the XHTML_10_Strict object.

Method Detail

supportsElement

public boolean supportsElement(java.lang.String elementName)
Return 'false' for the "br" elementName.

Parameters:
elementName - Name of the HTML element.
Returns:
True if this element is supported.

isTransitional

public boolean isTransitional()
Check if this is a TRANSITIONAL document type.

Returns:
boolean False.

formatElement

public java.lang.String formatElement(java.lang.String text,
                                      CharacterProperties cp,
                                      ParagraphProperties pp)
Format a String using the given CharacterProperties.

Parameters:
text - The String to be formatted.
cp - The character properties to be used.
pp - a ParagraphProperties object
Returns:
The formatted String.


Copyright (c) 1998-2006 BetaSoft Michael Justin. All Rights Reserved.