xmto2xmta.tree
Class defs
java.lang.Object
|
+--xmto2xmta.tree.TreeElement
|
+--xmto2xmta.tree.ConvertElement
|
+--xmto2xmta.tree.StructureElement
|
+--xmto2xmta.tree.defs
- All Implemented Interfaces:
- ZorderSupport
- public class defs
- extends StructureElement
- 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:
- 13 Dec 2000 - Created file.
- 30 Apr 2001 - Add switch to generate new format for XMT-A files.
- 06 Jun 2001 - Add group support for child elements.
Field Summary |
private static boolean |
debug_
Whether debug information is to be printed to the console. |
Fields inherited from class xmto2xmta.tree.ConvertElement |
convertIndexTable_, index_, xmtaDoc_, xmtaIds_, xmtaParNodes_, xmtaParOds_, xmtaParRoutes_, xmto2Xmta_, xmto2XmtaRes_, xmtoAttrId_, xmtoElement_, xmtoIds_ |
Constructor Summary |
defs(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 |
int |
getDeleteFieldPosition(ELASid elasId)
Determine the field position at time of deletion for the media/group element
in the group. |
java.lang.String |
getXmtaOrderedGroupId(ELASid elasId)
Get the id for the XMT-A ordered group to which media objects are added. |
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, handleValidateSyntax, insertIntoXmtaTree, remove, validateSyntax |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
debug_
private static boolean debug_
- Whether debug information is to be printed to the console.
default is not have debug information printed (false).
defs
public defs(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.
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:
- 0 since the defs doesn't support z-order positioning.
getXmtaOrderedGroupId
public java.lang.String getXmtaOrderedGroupId(ELASid elasId)
- Get the id for the XMT-A ordered group to which media objects are added.
All children go it the same ordered group id.
- Specified by:
getXmtaOrderedGroupId
in interface ZorderSupport
- Returns:
- the id (DEF) of the XMT-A ordered group.
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. The Defs section does not support z-order positioning.
- Specified by:
usePositions
in interface ZorderSupport
- Returns:
- false since the defs does not support z-ordering.