XMT-O Reference Software

xmto2xmta.mapstructure
Class StrXMTO

java.lang.Object
  |
  +--xmto2xmta.MapRoot
        |
        +--xmto2xmta.mapstructure.StrStructureElement
              |
              +--xmto2xmta.mapstructure.StrXMTO
All Implemented Interfaces:
MapInterface

public class StrXMTO
extends StrStructureElement

Class to handle the conversion of the XMT-O element. The class name is XMTO instead of XMT-O since java doesn't allow a dash character in the class name.

History:


Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
private  XMTO treeXmto_
           
private  java.util.ResourceBundle xmto2XmtaRes_
           
 
Fields inherited from class xmto2xmta.MapRoot
treeElement_, xmto2xmta_
 
Constructor Summary
StrXMTO()
           
 
Method Summary
private  boolean createXmtaBodyInfrasture()
          Create the body infrastructure.
private  boolean createXmtaHeaderInfrastructure()
          Create the XMT-A infrasturcture.
private  boolean createXmtaInfrastructure()
          Create the XMT-A infrasturcture.
private  boolean determineHasBackdropSrc(TreeElement treeElement, java.lang.Class backdropClass, java.lang.reflect.Method getXmtoAttrSrcMethod)
           
private  boolean determineHasClass(TreeElement treeElement, java.util.Vector classes)
           
private  boolean determineHasObjectDescriptors()
           
private  boolean determineHasXmtaMediaHasOD(TreeElement treeElement, java.lang.Class xmtaMediaClass, java.lang.reflect.Method getXmtoAttrHasODMethod)
           
 void doMapping()
           
 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).

treeXmto_

private XMTO treeXmto_

xmto2XmtaRes_

private java.util.ResourceBundle xmto2XmtaRes_
Constructor Detail

StrXMTO

public StrXMTO()
Method Detail

createXmtaBodyInfrasture

private boolean createXmtaBodyInfrasture()
Create the body infrastructure.
   <Body>
     <par begin="0"/>
     <par begin="0">
       <Replace>
         <Scene>
           <OrderedGroup>
             <children>
               <Group DEF="???">
                 <children/>
               </Group>
               <Switch whichChoice="-1">
                 <choice>
                   <Group DEF="???">
                     <children/>
                   </Group>
                 </choice>
               <Switch>
               <Switch whichChoice="-1">
                 <choice>
                   <Group DEF="???">
                     <children/>
                   </Group>
                 </choice>
               <Switch>
               <OrderedGroup DEF="???">
                 <children/>
               </OrderedGroup>
               <OrderedGroup DEF="???">
                 <children/>
               </OrderedGroup>
             </children>
           </Group>
         </Scene>
       </Replace>
     </par>
     <par begin="0"/>
     <par begin="0"/>
   </Body>
 

createXmtaHeaderInfrastructure

private boolean createXmtaHeaderInfrastructure()
Create the XMT-A infrasturcture.
 <Header>
   <InitialObjectDescriptor ObjectDescriptorID="???">
     <esDescr>
       <ES_Descriptor ES_ID="???">
         <decConfigDescr>
           <DecoderConfigDescriptor bufferSizeDB="auto" objectTypeIndication="255" streamType="3">
             <decSpecificInfo>
               <BIFSConfig nodeIDbits="auto" routeIDbits="auto"/>
                 <commandStream pixelMetric="???">
                   <size pixelWidth="???" pixelHeight="???"/>
                 </commandStream>
               </BIFSConfig>
             </decSpecificInfo>
           </DecoderConfigDescriptor>
         </decConfigDescr>
         <slConfigDescr>
           <SLConfigDescriptor>
             <predefined value="2"/>
           </SLConfigDescriptor>
         </slConfigDescr>
       </ES_Descriptor>
       <ES_Descriptor ES_ID="???">
         <decConfigDescr>
           <DecoderConfigDescriptor bufferSizeDB="auto" objectTypeIndication="255" streamType="1"/>
         </decConfigDescr>
         <slConfigDescr>
           <SLConfigDescriptor>
             <predefined value="2"/>
           </SLConfigDescriptor>
         </slConfigDescr>
       </ES_Descriptor>
     </esDescr>
   </InitialObjectDescriptor>
 </Header>
 

createXmtaInfrastructure

private boolean createXmtaInfrastructure()
Create the XMT-A infrasturcture.

determineHasBackdropSrc

private boolean determineHasBackdropSrc(TreeElement treeElement,
                                        java.lang.Class backdropClass,
                                        java.lang.reflect.Method getXmtoAttrSrcMethod)

determineHasClass

private boolean determineHasClass(TreeElement treeElement,
                                  java.util.Vector classes)

determineHasObjectDescriptors

private boolean determineHasObjectDescriptors()

determineHasXmtaMediaHasOD

private boolean determineHasXmtaMediaHasOD(TreeElement treeElement,
                                           java.lang.Class xmtaMediaClass,
                                           java.lang.reflect.Method getXmtoAttrHasODMethod)

doMapping

public void doMapping()

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