XMT-O Reference Software

xmto2xmta.mapgroup
Class GrpGroup

java.lang.Object
  |
  +--xmto2xmta.MapRoot
        |
        +--xmto2xmta.mapgroup.GrpGroupElement
              |
              +--xmto2xmta.mapgroup.GrpGroup
All Implemented Interfaces:
MapInterface

public class GrpGroup
extends GrpGroupElement

Class to handle the conversion of the body element.

History:


Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
private  group treeGroup_
           
private  java.util.ResourceBundle xmto2XmtaRes_
           
 
Fields inherited from class xmto2xmta.MapRoot
treeElement_, xmto2xmta_
 
Constructor Summary
GrpGroup()
           
 
Method Summary
protected  boolean createDeleteMapping(ELASid elasId)
          Create the group infrastructure.
protected  boolean createInsertMapping(ELASid elasId)
          Create the group infrastructure.
 void doMapping()
           
private  boolean doTimingMapping()
           
 void init(Xmto2Xmta xmto2xmta, ConvertElement element)
           
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).

treeGroup_

private group treeGroup_

xmto2XmtaRes_

private java.util.ResourceBundle xmto2XmtaRes_
Constructor Detail

GrpGroup

public GrpGroup()
Method Detail

createDeleteMapping

protected boolean createDeleteMapping(ELASid elasId)
Create the group infrastructure. The infrastructure contains the par node for the deletion. The par for the deletion, deletes the top level group for the element. It also takes care of the position in the ordered group field (for z-order)
   <par begin="???">
     <Delete atNode="???"/>
     <Delete atField="order" atNode="???"/>
   </par>
 

createInsertMapping

protected boolean createInsertMapping(ELASid elasId)
Create the group infrastructure. The infrastructure contains the par node for the insertion. The par node for the insertion contains the information for the element. This also takes care of the position in the ordered group field (for z-order).
   <par begin="???">
     <Insert atNode="???">
       <Group DEF="???">
         <children>
           <Switch DEF="???">
             <choice>
               <Layer2D DEF="???">
                 <children>
                   <Transform2D DEF="???">
                     <children>
                       <OrderedGroup DEF="???">
                         <children/>
                       </OrderedGroup>
                     </children>
                   </Transform2D>
                 </children>
               </Layer2D>
             </choice>
           </Switch>
           <TouchSensor DEF="???" enabled="false">
         </children>
       </Group>
     </Insert>
     <Insert atField="order" atNode="???" position="END"/>
   </par>
 

doMapping

public void doMapping()

doTimingMapping

private boolean doTimingMapping()

init

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

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