Interface IWritingContext<WRITER>
- All Known Subinterfaces:
IJsonWritingContext
,IXmlWritingContext
- All Known Implementing Classes:
MetaschemaJsonWriter
,MetaschemaXmlWriter
public interface IWritingContext<WRITER>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionGet the writer associated with the writing context.void
write
(IBoundDefinitionModelComplex definition, IBoundObject targetObject) Write the data described by the providedtargetObject
as an XML element.
-
Method Details
-
getWriter
Get the writer associated with the writing context.- Returns:
- the writer
-
write
void write(@NonNull IBoundDefinitionModelComplex definition, @NonNull IBoundObject targetObject) throws IOException Write the data described by the providedtargetObject
as an XML element.- Parameters:
definition
- the bound Module definition describing the data to writetargetObject
- the Java object data to write- Throws:
IOException
- if an error occurred while writing
-