Interface DOMSourceAnyxmlNode

All Superinterfaces:
AnyxmlNode<DOMSource>, DataContainerChild, ForeignDataNode<DOMSource>, NormalizedData, NormalizedNode, PrettyTreeAware

public interface DOMSourceAnyxmlNode extends AnyxmlNode<DOMSource>
An AnyxmlNode with data in DOMSource format.
  • Method Details

    • bodyObjectModel

      default Class<DOMSource> bodyObjectModel()
      Description copied from interface: ForeignDataNode
      Return the object model class, which identifies it. For example DOMSourceAnyxmlNode uses DOMSource as its value object model.
      Specified by:
      bodyObjectModel in interface ForeignDataNode<DOMSource>
      Returns:
      Object model class
    • body

      DOMSource body()
      Returns the body of this node. While the return value specifies Object, this method's return value has further semantics. The returned object must be a well-published contract, such as String, Collection<NormalizedNode> or DOMSource.

      The body follows the object model exposed through ForeignDataNode.bodyObjectModel()

      Returned value is a DOMSource representation. Returned source contains top level element that duplicates the anyxml node.

      Specified by:
      body in interface ForeignDataNode<DOMSource>
      Specified by:
      body in interface NormalizedData
      Returns:
      Returned value of this node.