XMT-O Reference Software

xmto2xmta.mapuse
Class UseUse

java.lang.Object
  |
  +--xmto2xmta.MapRoot
        |
        +--xmto2xmta.mapuse.UseTimingElement
              |
              +--xmto2xmta.mapuse.UseUse
All Implemented Interfaces:
MapInterface

public class UseUse
extends UseTimingElement

Class to handle the conversion of the body element.

History:


Field Summary
private static boolean classListInitialized_
          Used to create Lists for class mappings
private static boolean debug_
          Whether debug information is to be printed to the console.
private static java.util.Vector mpClasses_
           
private static java.lang.String mpClassesPackage_
           
private static java.lang.String[] mpClassNames_
           
private  java.util.Hashtable mpTable_
          Hash table containing the layout mapping classes which correspond to the XMT-O tree elements elements.
private static java.util.Vector treeClasses_
           
private static java.lang.String treeClassesPackage_
           
private static java.lang.String[] treeClassNames_
           
private  use treeUse_
           
private  java.util.ResourceBundle useRes_
           
private  Xmto2Xmta xmto2xmta_
           
 
Fields inherited from class xmto2xmta.MapRoot
treeElement_
 
Constructor Summary
UseUse()
           
 
Method Summary
 void doMapping()
           
 void init(Xmto2Xmta xmto2xmta, ConvertElement element)
           
private static void initializeClassLists(UseUse useUse)
           
private  void mapClass(ConvertElement element, DefsObject defsObject)
          Do a second level of mapping.
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 java.lang.String toString()
           
 
Methods inherited from class xmto2xmta.MapRoot
fireErrorEvent, fireErrorEvent, fireErrorEvent, getConvertElement
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

debug_

private static boolean debug_
Whether debug information is to be printed to the console. default is not have debug information printed (false).

treeUse_

private use treeUse_

xmto2xmta_

private Xmto2Xmta xmto2xmta_

mpTable_

private java.util.Hashtable mpTable_
Hash table containing the layout mapping classes which correspond to the XMT-O tree elements elements. The prime number 89 was chosen as the hash table initialize size because it was mentioned as a better starting hash size for optimization than the default 101. The layoutTable_ table is composed of (key, data) The key is the XMT-O tree element index. The data is the layout mapping class.

classListInitialized_

private static boolean classListInitialized_
Used to create Lists for class mappings

treeClassesPackage_

private static final java.lang.String treeClassesPackage_

mpClassesPackage_

private static final java.lang.String mpClassesPackage_

treeClasses_

private static java.util.Vector treeClasses_

mpClasses_

private static java.util.Vector mpClasses_

treeClassNames_

private static final java.lang.String[] treeClassNames_

mpClassNames_

private static final java.lang.String[] mpClassNames_

useRes_

private java.util.ResourceBundle useRes_
Constructor Detail

UseUse

public UseUse()
Method Detail

doMapping

public void doMapping()

init

public void init(Xmto2Xmta xmto2xmta,
                 ConvertElement element)
          throws java.lang.Exception
Overrides:
init in class MapRoot

initializeClassLists

private static void initializeClassLists(UseUse useUse)

mapClass

private void mapClass(ConvertElement element,
                      DefsObject defsObject)
Do a second level of mapping. This maps the <use> object to the type of usage it is performing. The type of useage it is performing is based on the defs object associated with the use. thus a usage of a media object get used like a media object. But the usage of a fontStyle is used in a very different way, in the way a fontstyle is used.

The Media objects and group are used in the same way because they all have as their root a xmt-a group element. And the usage of a standard group can be used.


setDebug

public static void setDebug(boolean debug)
Enable debugging information to be printed to the console.
Parameters:
debug - sets debug information is printed

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

XMT-O Reference Software