Packageorg.flashapi.pfowl.dtd
Classpublic class DtdExporter
InheritanceDtdExporter Inheritance Object

Product Version : SPAS 3.0
Runtime Versions : AIR 1.0, Flash Player Player - 9

The DtdExporter class is a utility class which provides methods for exporting a Dtd object to a specific well-formatted text.



Public Properties
 PropertyDefined By
  fontFamily : String = Courier New, Courier, mono
[static] The font family used by TextFlow string when exporting a Dtd object from the dtdToTLFString() method.
DtdExporter
  fontSize : uint = 13
[static] The size of the font used by TextFlow string when exporting a Dtd object from the dtdToTLFString() method.
DtdExporter
Public Methods
 MethodDefined By
  
dtdToString(dtd:Dtd, showXml:Boolean = true, showHeader:Boolean = true, showComments:Boolean = true):String
[static] Exports a Dtd object in the form of a valid DTD string.
DtdExporter
  
dtdToTLFString(dtd:Dtd, showXml:Boolean = true, showHeader:Boolean = true, showComments:Boolean = true):String
[static] Exports a Dtd object into the markup language used by the Text Layout Framework, in the form of XML.
DtdExporter
Property Detail
fontFamilyproperty
public static var fontFamily:String = Courier New, Courier, mono

The font family used by TextFlow string when exporting a Dtd object from the dtdToTLFString() method.

The default value is "Courier New, Courier, mono".

fontSizeproperty 
public static var fontSize:uint = 13

The size of the font used by TextFlow string when exporting a Dtd object from the dtdToTLFString() method.

The default value is 13.

Method Detail
dtdToString()method
public static function dtdToString(dtd:Dtd, showXml:Boolean = true, showHeader:Boolean = true, showComments:Boolean = true):String

Exports a Dtd object in the form of a valid DTD string.

Parameters

dtd:Dtd — The Dtd object to export.
 
showXml:Boolean (default = true) — If true the resulting string will contains the XML declaration for the DTD file.
 
showHeader:Boolean (default = true) — Indicates whether to add a header to the resulting string (true), or not (false).
 
showComments:Boolean (default = true) — Indicates whether to add a documentation comments to the resulting string (true), or not (false).

Returns
String — A string that represents a valid DTD file.
dtdToTLFString()method 
public static function dtdToTLFString(dtd:Dtd, showXml:Boolean = true, showHeader:Boolean = true, showComments:Boolean = true):String

Exports a Dtd object into the markup language used by the Text Layout Framework, in the form of XML.

Parameters

dtd:Dtd — The Dtd object to export.
 
showXml:Boolean (default = true) — If true the resulting string will contains the XML declaration for the DTD file.
 
showHeader:Boolean (default = true) — Indicates whether to add a header to the resulting string (true), or not (false).
 
showComments:Boolean (default = true) — Indicates whether to add a documentation comments to the resulting string (true), or not (false).

Returns
String — A string formatted into the markup language used by the Text Layout Framework.