- All Superinterfaces:
IWritingContext<org.codehaus.stax2.XMLStreamWriter2>
- All Known Implementing Classes:
MetaschemaXmlWriter
Provides the writing context for serializing Java objects to XML format.
This interface extends IWritingContext with an XML-specific writer
type and adds a method for writing root elements.
- See Also:
-
XMLStreamWriter2
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.databind.io.IWritingContext
IWritingContext.ObjectWriter<T extends IFeatureComplexItemValueHandler> -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteRoot(IBoundDefinitionModelAssembly definition, IBoundObject item) Write the root element for the provided definition and bound object.Methods inherited from interface dev.metaschema.databind.io.IWritingContext
getWriter, write
-
Method Details
-
writeRoot
void writeRoot(@NonNull IBoundDefinitionModelAssembly definition, @NonNull IBoundObject item) throws IOException Write the root element for the provided definition and bound object.- Parameters:
definition- the assembly definition describing the root elementitem- the bound object to serialize as the root element- Throws:
IOException- if an error occurs during writing
-