java.lang.Object
dev.metaschema.databind.io.xml.XmlAnyContent
- All Implemented Interfaces:
IAnyContent
XML-specific implementation of
IAnyContent that stores captured
unmodeled content as W3C DOM Element instances.-
Constructor Summary
ConstructorsConstructorDescriptionXmlAnyContent(List<Element> elements) Construct a new instance with the provided captured elements. -
Method Summary
Modifier and TypeMethodDescriptionGet the captured DOM elements.booleanisEmpty()Determine if this content container has no captured content.
-
Constructor Details
-
XmlAnyContent
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()Description copied from interface:IAnyContentDetermine if this content container has no captured content.- Specified by:
isEmptyin interfaceIAnyContent- Returns:
trueif no unmodeled content was captured,falseotherwise
-
getElements
Get the captured DOM elements.- Returns:
- an unmodifiable list of captured elements
-