Interface IXmlWritingContext
-
- All Superinterfaces:
IWritingContext<org.codehaus.stax2.XMLStreamWriter2>
- All Known Implementing Classes:
MetaschemaXmlWriter
public interface IXmlWritingContext extends IWritingContext<org.codehaus.stax2.XMLStreamWriter2>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeDefinitionValue(IClassBinding targetDefinition, Object targetObject, QName parentName)
Write the data described by the providedtargetDefinition
as an XML element.void
writeInstanceValue(IBoundNamedModelInstance targetInstance, Object targetObject, QName parentName)
Write the data described by the providedtargetDefinition
as an XML element.-
Methods inherited from interface gov.nist.secauto.metaschema.databind.io.IWritingContext
getWriter
-
-
-
-
Method Detail
-
writeDefinitionValue
void writeDefinitionValue(@NonNull IClassBinding targetDefinition, @NonNull Object targetObject, @NonNull QName parentName) throws IOException
Write the data described by the providedtargetDefinition
as an XML element.- Parameters:
targetDefinition
- the bound Module definition describing the structure of the XML data to writetargetObject
- the Java object data to writeparentName
- the qualified name of the XML element to write- Throws:
IOException
- if an error occurred while writing the XML
-
writeInstanceValue
void writeInstanceValue(@NonNull IBoundNamedModelInstance targetInstance, @NonNull Object targetObject, @NonNull QName parentName) throws IOException
Write the data described by the providedtargetDefinition
as an XML element.- Parameters:
targetInstance
- the model instance that describes the syntax of the data to writetargetObject
- the Java object data to writeparentName
- the qualified name of the XML element to write- Throws:
IOException
- if an error occurred while writing the XML
-
-