Interface IWritingContext<WRITER>
- All Known Subinterfaces:
IJsonWritingContext,IXmlWritingContext
- All Known Implementing Classes:
MetaschemaJsonWriter,MetaschemaXmlWriter
public interface IWritingContext<WRITER>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionGet the writer associated with the writing context.voidwrite(IBoundDefinitionModelComplex definition, IBoundObject targetObject) Write the data described by the providedtargetObjectas 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 providedtargetObjectas 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
-