xmto2xmta.tree
Class xmtaMedia
java.lang.Object
|
+--xmto2xmta.tree.TreeElement
|
+--xmto2xmta.tree.ConvertElement
|
+--xmto2xmta.tree.TimingElement
|
+--xmto2xmta.tree.xmtaMedia
- All Implemented Interfaces:
- DefsObject, Sensorable
- public class xmtaMedia
- extends TimingElement
- implements Sensorable, DefsObject
Class to handle the conversion of the set element.
History:
- 08 Jun 2001 - Created file.
- 12 Jun 2001 - Add defs support for media objects and group.
- 21 Jun 2001 - Fix bug in getter hasOD attribute.
Fields inherited from class xmto2xmta.tree.TimingElement |
timingElementRes_, xmtoAttrBegin_, xmtoAttrDur_, xmtoAttrEnd_, xmtoAttrEndsync_, xmtoAttrFill_, xmtoAttrFillDefault_, xmtoAttrMax_, xmtoAttrMin_, xmtoAttrRepeatCount_, xmtoAttrRepeatDur_, xmtoAttrRestart_, xmtoAttrRestartDefault_ |
Fields inherited from class xmto2xmta.tree.ConvertElement |
convertIndexTable_, index_, xmtaDoc_, xmtaIds_, xmtaParNodes_, xmtaParOds_, xmtaParRoutes_, xmto2Xmta_, xmtoAttrId_, xmtoElement_, xmtoIds_ |
Constructor Summary |
xmtaMedia(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. |
Methods inherited from class xmto2xmta.tree.TimingElement |
getXmtoAttrBegin, getXmtoAttrDur, getXmtoAttrEnd, getXmtoAttrEndsync, getXmtoAttrFill, getXmtoAttrFillDefault, getXmtoAttrMax, getXmtoAttrMin, getXmtoAttrRepeatCount, getXmtoAttrRepeatDur, getXmtoAttrRepeatRestart, getXmtoAttrRepeatRestartDefault, validateDefsObjectTimingSyntax, validateSyntax |
Methods inherited from class xmto2xmta.tree.ConvertElement |
addToParNode, addToParOd, addToParRoutes, fireErrorEvent, fireErrorEvent, fireErrorEvent, getConvertIndexTable, getIndex, getXmtaDoc, getXmtaIds, getXmto2Xmta, getXmtoAttrId, getXmtoElement, getXmtoIds, insertIntoXmtaTree, remove |
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).
xmtoAttrType_
private java.lang.String xmtoAttrType_
xmtoAttrHasOD_
private java.lang.String xmtoAttrHasOD_
xmtaAttrHasOD_
private boolean xmtaAttrHasOD_
xmtaGroupIds_
private java.util.Hashtable xmtaGroupIds_
xmtaTouchSensorIds_
private java.util.Hashtable xmtaTouchSensorIds_
xmtaNodeContainerIds_
private java.util.Hashtable xmtaNodeContainerIds_
isInDefsTreeInitialized_
private boolean isInDefsTreeInitialized_
isInDefsTree_
private boolean isInDefsTree_
isDefsParent_
private boolean isDefsParent_
xmto2XmtaRes_
private java.util.ResourceBundle xmto2XmtaRes_
useRes_
private java.util.ResourceBundle useRes_
xmtaMedia
public xmtaMedia(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.
createChildren
public boolean createChildren()
- Determine whether or not children of this DOMParser element should be parsed
and create children ConvertElments or not. Probably the only place
this method is used to return false is in the xmtaMedia element
where children of the object are specific to XMT-A and not XMT-O.
- Overrides:
createChildren
in class ConvertElement
getXmtaAttrHasOD
public boolean getXmtaAttrHasOD()
getXmtaDefsId
public java.lang.String getXmtaDefsId()
- Get the defs id of the object.
- Specified by:
getXmtaDefsId
in interface DefsObject
- Returns:
- the unique id of this object.
getXmtaGroupId
public java.lang.String getXmtaGroupId(ELASid elasId)
- Get the id for the group element.
getXmtaNodeContainerId
public java.lang.String getXmtaNodeContainerId(ELASid elasId)
- Get the id for the group element.
getXmtaTouchSensorId
public java.lang.String getXmtaTouchSensorId(ELASid elasId)
- Specified by:
getXmtaTouchSensorId
in interface Sensorable
getXmtoAttrType
public java.lang.String getXmtoAttrType()
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 TimingElement
- Parameters:
attributeName
- node name of attribute.attributeValue
- node value of attribute.- Returns:
- whether this attribute is handled or not.
initDefsFlags
public void initDefsFlags()
- Routine to initialize the defs query flags. This is added to provide
consistency for all the classes that implement the DefsObject interface.
- Specified by:
initDefsFlags
in interface DefsObject
isDefsParent
public boolean isDefsParent()
- Determine whether the object is a child of the defs element or not.
This means that the object is a direct child of the defs element.
It isn't a child if it isn't in the defs tree or is a descendent
(starting at grandchild) of the defs element.
- Specified by:
isDefsParent
in interface DefsObject
- Returns:
- whether the object is a child of the defs element. True if
it is a child of the defs element, false otherwise.
isInDefsTree
public boolean isInDefsTree()
- Determine whether the object is in the defs tree or not. This means
that the object is defined somewhere in the Defs tree. It may be a
child or descendent of the defs element.
- Specified by:
isInDefsTree
in interface DefsObject
- Returns:
- whether the object is in the defs tree. True if a descendent
of the defs element, false otherwise.
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