com.virtualweaver.xotics.datamodel
Interface XoRoot

All Superinterfaces:
java.lang.Cloneable, XoContainer, XoNode, XoObject

public interface XoRoot
extends XoContainer

This interface, extending XoContainer, must be implemented by all XO Container which can be root of an XO DM instance tree.

Version:
4.1

Method Summary
 void checkXoDMInstanceValidity()
          Checks whether entire DM instance is valid.
 void xoInitialize(java.lang.Object initObject)
          This hook method is called after the end of an XO DM instance creation.
 void xoRelease()
          Hook method called when XoDMInstance.release() is called.
 
Methods inherited from interface com.virtualweaver.xotics.datamodel.XoContainer
addXoChild, addXoContainerListener, getXoChildren, getXoChildren, getXoChildrenCount, getXoContainerListeners, getXoContentModel, isXoObjectWelcome, removeXoChild, removeXoContainerListener
 
Methods inherited from interface com.virtualweaver.xotics.datamodel.XoObject
addPropertyChangeListener, addVetoableChangeListener, checkXoValidity, clone, equalsXoObject, getLocale, getXmlLocalName, getXmlNameSpace, getXmlWhiteSpace, getXoDMInstance, getXoParent, isXoPropertyToWrite, removePropertyChangeListener, removeVetoableChangeListener, setIntegrated, setLocale, setXmlLocalName, setXmlNameSpace, setXmlWhiteSpace, setXoDMInstance, setXoParent
 

Method Detail

xoInitialize

public void xoInitialize(java.lang.Object initObject)
                  throws XoException
This hook method is called after the end of an XO DM instance creation. It can be used to perform some custom configuration of the DM instance.

Parameters:
initObject - some object to help DMInstance init
Throws:
XoException - can be thrown when the custom configration has failed

xoRelease

public void xoRelease()
Hook method called when XoDMInstance.release() is called. It can be used, for example, to release some allocated resources by any XO objects in the DM instance.


checkXoDMInstanceValidity

public void checkXoDMInstanceValidity()
                               throws XoValidityException
Checks whether entire DM instance is valid. This method can be used to perform global validity rules.

Throws:
XoException - when DM instance containing this root element is not valid, with the reason why
XoValidityException