de.betabeans.scroogexhtml.translator
Class XHTML10Transitional

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

public final class XHTML10Transitional
extends XHTMLTranslator

XHTML 1.0 Transitional Translator.

Author:
Michael Justin

Constructor Summary
XHTML10Transitional()
          Constructor for the XHTML_10_Transitional 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 'true' for all elements.
 
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

XHTML10Transitional

public XHTML10Transitional()
Constructor for the XHTML_10_Transitional object.

Method Detail

isTransitional

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

Returns:
boolean True.

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 - ParagraphProperties
Returns:
The formatted String.

supportsElement

public boolean supportsElement(java.lang.String elementName)
Return 'true' for all elements.

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


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