XMT-O Reference Software

xmto2xmta.tree
Interface DefsObject

All Known Implementing Classes:
AugmentationElement, InternalElement, XmediaChildrenDefsElement, group, img, XmediaChildrenExternalElement, texture, xmtaMedia

public interface DefsObject

listener interface for the editor options model.

History:


Method Summary
 java.lang.String getXmtaDefsId()
          Get the defs id of the object.
 void initDefsFlags()
          Routine to initialize the defs query flags.
 boolean isDefsParent()
          Determine whether the object is a child of the defs element or not.
 boolean isInDefsTree()
          Determine whether the object is in the defs tree or not.
 

Method Detail

getXmtaDefsId

public java.lang.String getXmtaDefsId()
Get the defs id of the object.
Returns:
the unique id of this object.

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.

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.
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.
Returns:
whether the object is in the defs tree. True if a descendent of the defs element, false otherwise.

XMT-O Reference Software