de.betabeans.scroogexhtml.translator
Class XHTMLBasic10

java.lang.Object
  extended by de.betabeans.scroogexhtml.translator.CustomTranslator
      extended by de.betabeans.scroogexhtml.translator.XHTMLTranslator
          extended by de.betabeans.scroogexhtml.translator.XHTMLBasic10
All Implemented Interfaces:
Translator
Direct Known Subclasses:
XHTMLMobileProfile10

public class XHTMLBasic10
extends XHTMLTranslator

XHTML Basic 1.0 Translator.

Author:
Michael Justin

Constructor Summary
XHTMLBasic10()
          Constructor for the XHTMLBasic10 object.
 
Method Summary
 java.lang.String formatElement(java.lang.String text, CharacterProperties cp, ParagraphProperties pp)
          Return formatted text string.
 java.lang.String getParagraphStyle(ParagraphProperties pp)
          Gets the paragraphStyle attribute of the XHTMLBasic10 object.
 boolean isTransitional()
          Check if this is a TRANSITIONAL HTML 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, 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

XHTMLBasic10

public XHTMLBasic10()
Constructor for the XHTMLBasic10 object.

Method Detail

isTransitional

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

Returns:
boolean False.

getParagraphStyle

public final java.lang.String getParagraphStyle(ParagraphProperties pp)
Gets the paragraphStyle attribute of the XHTMLBasic10 object.

Specified by:
getParagraphStyle in interface Translator
Overrides:
getParagraphStyle in class CustomTranslator
Parameters:
pp - The paragraph properties.
Returns:
The paragraph style definition.

formatElement

public final java.lang.String formatElement(java.lang.String text,
                                            CharacterProperties cp,
                                            ParagraphProperties pp)
Return formatted text string. Note: there is no "lang" attribute in XHTML Basic 1.0

Parameters:
text - The String to be formatted.
cp - Character properties of the text.
pp - ParagraphProperties
Returns:
HTML formatted String.

supportsElement

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

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


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