Element backed by an arbitrary data source. When necessary, this element will be expanded by creating a parser from the data source.
Whenever methods are added to the base {@link OMElementImpl}class the corresponding methods must be added to this class (there's a unit test to verify that this has been done, just to make sure nothing gets accidentally broken). If the method only requires the element name and/or namespace information, the base class method can be called directly. Otherwise, the element must be expanded into a full OM tree (by calling the {@link #forceExpand()} method) before the base class method is called. This will typically involve aheavy overhead penalty, so should be avoided if possible.
|
|