XMT-O Reference Software

xmto2xmta.tree
Class region

java.lang.Object
  |
  +--xmto2xmta.tree.TreeElement
        |
        +--xmto2xmta.tree.ConvertElement
              |
              +--xmto2xmta.tree.StructureElement
                    |
                    +--xmto2xmta.tree.RegionContainerElement
                          |
                          +--xmto2xmta.tree.region
All Implemented Interfaces:
ZorderSupport

public class region
extends RegionContainerElement
implements ZorderSupport

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 classesLoaded_
           
private static boolean debug_
          Whether debug information is to be printed to the console.
private  java.util.Hashtable deletePositions_
           
private static java.lang.reflect.Method getXmtoAttrRegionMethodGroup_
           
private static java.lang.Class groupClass_
           
private  boolean positionsDetermined_
           
private  boolean usePositions_
           
private  java.lang.String xmtaLayer2dId_
           
private  java.lang.String xmtaLayoutOrderedGroupId_
           
private  java.lang.String xmtaOrderedGroupId_
           
private  java.lang.String xmtaTransform2dId_
           
private  java.util.ResourceBundle xmto2XmtaRes_
           
private  java.lang.String xmtoAttrSize_
           
private  java.lang.String xmtoAttrTranslation_
           
private  java.lang.String xmtoAttrZindex_
           
 
Fields inherited from class xmto2xmta.tree.ConvertElement
convertIndexTable_, index_, xmtaDoc_, xmtaIds_, xmtaParNodes_, xmtaParOds_, xmtaParRoutes_, xmto2Xmta_, xmtoAttrId_, xmtoElement_, xmtoIds_
 
Fields inherited from class xmto2xmta.tree.TreeElement
children, parent_
 
Constructor Summary
region(org.w3c.dom.Element xmtoElement, java.util.Hashtable xmtoIds, java.util.Hashtable xmtaIds, java.util.Hashtable convertIndexTable, org.w3c.dom.Document xmtaDoc, Xmto2Xmta xmto2Xmta)
          constructor.
 
Method Summary
private  java.util.Vector determineChildrenElements(ConvertElement parent)
          Create a list of the timing element children of this region node.
private  void determineDeleteFieldPositions()
          Add a media element into the ordered group.
 int getDeleteFieldPosition(ELASid elasId)
          Determine the field position at time of deletion for the media/group element in the group.
 java.lang.String getXmtaLayer2dId()
          Get the id for the XMT-A ordered group to which region objects are added.
 java.lang.String getXmtaLayoutOrderedGroupId()
          Get the id for the XMT-A ordered group to which region objects are added.
 java.lang.String getXmtaOrderedGroupId()
          Get the id for the XMT-A ordered group to which media objects are added.
 java.lang.String getXmtaOrderedGroupId(ELASid elasId)
          Get the id for the XMT-A ordered group to which media objects are added.
 java.lang.String getXmtaTransform2dId()
          Get the id for the XMT-A ordered group to which region objects are added.
 java.lang.String getXmtoAttrSize()
           
 java.lang.String getXmtoAttrTranslation()
           
 java.lang.String getXmtoAttrZindex()
           
protected  boolean handleValidateSyntax(java.lang.String attributeName, java.lang.String attributeValue)
          Handle the attribute by checking its syntax.
private static void loadClasses()
           
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 java.lang.String toString()
           
 boolean usePositions()
          Return whether the z-ordering positioning is used for the children or not.
 
Methods inherited from class xmto2xmta.tree.ConvertElement
addToParNode, addToParOd, addToParRoutes, createChildren, fireErrorEvent, fireErrorEvent, fireErrorEvent, getConvertIndexTable, getIndex, getXmtaDoc, getXmtaIds, getXmto2Xmta, getXmtoAttrId, getXmtoElement, getXmtoIds, insertIntoXmtaTree, remove, validateSyntax
 
Methods inherited from class xmto2xmta.tree.TreeElement
addChild, getChildren, getParent, removeChild, setParent
 
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).

xmtoAttrTranslation_

private java.lang.String xmtoAttrTranslation_

xmtoAttrSize_

private java.lang.String xmtoAttrSize_

xmtoAttrZindex_

private java.lang.String xmtoAttrZindex_

xmtaOrderedGroupId_

private java.lang.String xmtaOrderedGroupId_

xmtaLayoutOrderedGroupId_

private java.lang.String xmtaLayoutOrderedGroupId_

xmtaLayer2dId_

private java.lang.String xmtaLayer2dId_

xmtaTransform2dId_

private java.lang.String xmtaTransform2dId_

deletePositions_

private java.util.Hashtable deletePositions_

positionsDetermined_

private boolean positionsDetermined_

usePositions_

private boolean usePositions_

groupClass_

private static java.lang.Class groupClass_

getXmtoAttrRegionMethodGroup_

private static java.lang.reflect.Method getXmtoAttrRegionMethodGroup_

classesLoaded_

private static boolean classesLoaded_

xmto2XmtaRes_

private java.util.ResourceBundle xmto2XmtaRes_
Constructor Detail

region

public region(org.w3c.dom.Element xmtoElement,
              java.util.Hashtable xmtoIds,
              java.util.Hashtable xmtaIds,
              java.util.Hashtable convertIndexTable,
              org.w3c.dom.Document xmtaDoc,
              Xmto2Xmta xmto2Xmta)
constructor.
Parameters:
xmtoElement - XMT-O element for conversion.
xmtoIds - hashtable to contain XMT-O Conversion elements with the key of their XMT-O id.
xmtaIds - hashtable to contain XMT-A elements with the key of their XMT-A id.
xmtaDoc - DOM Document for the new XMT-A elements.
xmto2Xmta - Converter, used for firing error events.
Method Detail

determineChildrenElements

private java.util.Vector determineChildrenElements(ConvertElement parent)
Create a list of the timing element children of this region node. This includes all media elements and group elements. If a Time container element is encountered then recurse through the time container element adding its elements. There can be par elements because the <.body>. elements is a GroupElement. The list should be in document order.
Returns:
list of the children elements.

determineDeleteFieldPositions

private void determineDeleteFieldPositions()
Add a media element into the ordered group.
Parameters:
mediaElement - XMT-A media object to be added into ordered group.

getDeleteFieldPosition

public int getDeleteFieldPosition(ELASid elasId)
Determine the field position at time of deletion for the media/group element in the group.
Specified by:
getDeleteFieldPosition in interface ZorderSupport
Parameters:
elasId - id to specify which simple duration of a child element.
Returns:
the field position at time of deletion for the media/group element.

getXmtaLayer2dId

public java.lang.String getXmtaLayer2dId()
Get the id for the XMT-A ordered group to which region objects are added.
Returns:
the id (DEF) of the XMT-A ordered group.

getXmtaLayoutOrderedGroupId

public java.lang.String getXmtaLayoutOrderedGroupId()
Get the id for the XMT-A ordered group to which region objects are added.
Overrides:
getXmtaLayoutOrderedGroupId in class RegionContainerElement
Returns:
the id (DEF) of the XMT-A ordered group.

getXmtaOrderedGroupId

public java.lang.String getXmtaOrderedGroupId()
Get the id for the XMT-A ordered group to which media objects are added.
Returns:
the id (DEF) of the XMT-A ordered group.

getXmtaOrderedGroupId

public java.lang.String getXmtaOrderedGroupId(ELASid elasId)
Get the id for the XMT-A ordered group to which media objects are added.
Specified by:
getXmtaOrderedGroupId in interface ZorderSupport
Returns:
the id (DEF) of the XMT-A ordered group.

getXmtaTransform2dId

public java.lang.String getXmtaTransform2dId()
Get the id for the XMT-A ordered group to which region objects are added.
Returns:
the id (DEF) of the XMT-A ordered group.

getXmtoAttrSize

public java.lang.String getXmtoAttrSize()

getXmtoAttrTranslation

public java.lang.String getXmtoAttrTranslation()

getXmtoAttrZindex

public java.lang.String getXmtoAttrZindex()

handleValidateSyntax

protected boolean handleValidateSyntax(java.lang.String attributeName,
                                       java.lang.String attributeValue)
Handle the attribute by checking its syntax. This is to catch all syntax errors which the schema can not check for, and thus the DOM parser doesn't find any problems. Call the parent handler to see if it can handle the attribute or not.
Overrides:
handleValidateSyntax in class ConvertElement
Parameters:
attributeName - node name of attribute.
attributeValue - node value of attribute.
Returns:
whether this attribute is handled or not.

loadClasses

private static void loadClasses()

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 TreeElement

usePositions

public boolean usePositions()
Return whether the z-ordering positioning is used for the children or not.
Specified by:
usePositions in interface ZorderSupport
Returns:
whether z-ordering is used for this GroupElement or not.

XMT-O Reference Software