Class XmlAnyContent

java.lang.Object
dev.metaschema.databind.io.xml.XmlAnyContent
All Implemented Interfaces:
dev.metaschema.core.model.IAnyContent

public class XmlAnyContent extends Object implements dev.metaschema.core.model.IAnyContent
XML-specific implementation of IAnyContent that stores captured unmodeled content as W3C DOM Element instances.
  • Constructor Details

    • XmlAnyContent

      public XmlAnyContent(@NonNull List<Element> elements)
      Construct a new instance with the provided captured elements.
      Parameters:
      elements - the captured DOM elements, must not be null
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface dev.metaschema.core.model.IAnyContent
    • getElements

      @NonNull public List<Element> getElements()
      Get the captured DOM elements.
      Returns:
      an unmodifiable list of captured elements