XMT-O Reference Software

xmto2xmta.mapuse
Class UseXmediaChildrenDefsElement

java.lang.Object
  |
  +--xmto2xmta.MapRoot
        |
        +--xmto2xmta.mapuse.UseXmediaChildrenDefsElement
All Implemented Interfaces:
MapInterface
Direct Known Subclasses:
UseChromakey, UseFontStyle, UseMaterial, UseOutline

public abstract class UseXmediaChildrenDefsElement
extends MapRoot

Class to group together the Structure type of elements.

History:


Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
private  use treeUse_
           
private  java.util.ResourceBundle xmto2XmtaRes_
           
 
Fields inherited from class xmto2xmta.MapRoot
treeElement_, xmto2xmta_
 
Constructor Summary
UseXmediaChildrenDefsElement()
           
 
Method Summary
protected  boolean createInsertMapping(ELASid elasId)
          Create the xMedia Child Element infrastructure.
 void doMapping()
           
private  boolean doTimingMapping()
           
protected abstract  java.lang.String getElementName()
          return the name of element which needs to be created.
protected abstract  java.lang.String getReplaceAtFieldAttr()
          Get the XMTA field id in which the xMediaChild should be placed into.
protected abstract  java.lang.String getReplaceAtNodeAttr(ELASid elasId)
          Get the XMTA node id in which the xMediaChild should be placed into.
 void init(Xmto2Xmta xmto2xmta, ConvertElement element)
           
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 
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, toString, 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_

xmto2XmtaRes_

private java.util.ResourceBundle xmto2XmtaRes_
Constructor Detail

UseXmediaChildrenDefsElement

public UseXmediaChildrenDefsElement()
Method Detail

createInsertMapping

protected boolean createInsertMapping(ELASid elasId)
Create the xMedia Child Element infrastructure. The infrastructure contains the par node for the insertion. This insertMapping is because the XMT-O xMediaChild element is found underneath an mediaObject (or some other timing object) element. Thus we need to replace the XMT-A field with the appropriate XMT-A node.
   <par begin="???">
     <Replace atField="???" atNode="???"/>
   </par>
 

doMapping

public void doMapping()

doTimingMapping

private boolean doTimingMapping()

getElementName

protected abstract java.lang.String getElementName()
return the name of element which needs to be created.

getReplaceAtFieldAttr

protected abstract java.lang.String getReplaceAtFieldAttr()
Get the XMTA field id in which the xMediaChild should be placed into.

getReplaceAtNodeAttr

protected abstract java.lang.String getReplaceAtNodeAttr(ELASid elasId)
Get the XMTA node id in which the xMediaChild should be placed into.

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

XMT-O Reference Software