XMT-O Reference Software

xmto2xmta.mapxmediachildren
Class XchXmediaChildrenExternalElement

java.lang.Object
  |
  +--xmto2xmta.MapRoot
        |
        +--xmto2xmta.mapxmediachildren.XchXmediaChildrenExternalElement
All Implemented Interfaces:
MapInterface
Direct Known Subclasses:
XchTexture

public abstract class XchXmediaChildrenExternalElement
extends MapRoot

Class to group together the various type media elements whose data is external to the XMT file.

History:


Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
private  java.util.ResourceBundle externalElementRes_
           
protected static java.lang.String FILE_URL_PREFIX
           
private  MediaObjectInformation mediaObjectInformation_
           
protected static java.lang.String ODID_URL_PREFIX
           
private  XmediaChildrenExternalElement treeXmediaChildExtElement_
           
 
Fields inherited from class xmto2xmta.MapRoot
treeElement_, xmto2xmta_
 
Constructor Summary
XchXmediaChildrenExternalElement()
           
 
Method Summary
protected  boolean createDeleteMapping(ELASid elasId)
          Create the media Element infrastructure.
protected  boolean createInsertMapping()
          Create the External Element infrastructure.
protected  boolean createInsertMapping(ELASid elasId)
          Create the External Element infrastructure.
private  boolean createInsertMappingOD(TimingAttribute insertTime, java.lang.String objectDescriptorId, java.lang.String esDescriptorId)
          Create the External Element infrastructure.
protected  MediaObjectInformation getMediaObjectInformation()
           
 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
 
Methods inherited from interface xmto2xmta.MapInterface
doMapping
 

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).

ODID_URL_PREFIX

protected static final java.lang.String ODID_URL_PREFIX

FILE_URL_PREFIX

protected static final java.lang.String FILE_URL_PREFIX

treeXmediaChildExtElement_

private XmediaChildrenExternalElement treeXmediaChildExtElement_

mediaObjectInformation_

private MediaObjectInformation mediaObjectInformation_

externalElementRes_

private java.util.ResourceBundle externalElementRes_
Constructor Detail

XchXmediaChildrenExternalElement

public XchXmediaChildrenExternalElement()
Method Detail

createDeleteMapping

protected boolean createDeleteMapping(ELASid elasId)
Create the media Element 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="???">
     <ObjectDescriptorRemove objectDescriptorId="???"/>
   </par>
 

createInsertMapping

protected boolean createInsertMapping()
Create the External Element infrastructure.

createInsertMapping

protected boolean createInsertMapping(ELASid elasId)
Create the External Element infrastructure.

createInsertMappingOD

private boolean createInsertMappingOD(TimingAttribute insertTime,
                                      java.lang.String objectDescriptorId,
                                      java.lang.String esDescriptorId)
Create the External Element infrastructure. The infrastructure contains the par node for the insertion of the OD. NOTE: The OD is the same with all the external streams (audio, video & image) in the new XMT-A specification.
   <par begin="???">
     <ObjectDescriptorUpdate>
       <OD>
         <ObjectDescriptor ObjectDescriptorID="???">
           <esDescr>
             <ES_Descriptor ES_ID="???">
               <StreamSource url="???"/>
               <decConfigDescr>
                 <DecoderConfigDescriptor bufferSizeDB="auto" objectTypeIndication="???" streamType="???">
                   <decSpecificInfo>
                     <DecoderSpecificInfo type="auto"/>
                   </decSpecificInfo>
                 </DecoderConfigDescriptor>
               </decConfigDescr>
               <slConfigDescr>
                 <SLConfigDescriptor timeStampLength="auto" timeStampResolution="auto" useAccessUnitStartFlag="true">
               </slConfigDescr>
             </ES_Descriptor>
           </esDescr>
         </ObjectDescriptor>
       <OD/>
     </ObjectDescriptorUpdate>
   </par>
 

getMediaObjectInformation

protected MediaObjectInformation getMediaObjectInformation()

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