Package se.conciliate.extensions.xml
Interface RepositoryXMLWriter
public interface RepositoryXMLWriter
Serializes repository data to XML that can later be read using a
RepositoryXMLReader
.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the namespace URI for the XML format.<T> InputStream
Returns the schema resource for an entity type.void
Sets a hint for the writer.<T> void
writeEntity
(XMLStreamWriter writer, Class<T> type, T entity) Writes an entity to XML.
-
Field Details
-
HINT_WRITE_PLUGIN_DATA
- See Also:
-
VALUE_WRITE_PLUGIN_DATA_TRUE
- See Also:
-
VALUE_WRITE_PLUGIN_DATA_FALSE
- See Also:
-
HINT_WRITE_EXTENSION_DOCUMENTS
- See Also:
-
VALUE_WRITE_EXTENSION_DOCUMENTS_TRUE
- See Also:
-
VALUE_WRITE_EXTENSION_DOCUMENTS_FALSE
- See Also:
-
HINT_CHANGED_TIMESTAMP
A hint for the time to compare to to set the "changed" flag of entities in the export file. Set the value to aMTTimestamp
. Entities that are not changed after the timestamp will be marked as not changed in the export file.- See Also:
-
-
Method Details
-
getNamespaceURI
String getNamespaceURI()Returns the namespace URI for the XML format.- Returns:
- The namespace URI.
-
getSchema
Returns the schema resource for an entity type.- Returns:
- The schema as an input stream.
-
writeEntity
Writes an entity to XML.- Parameters:
writer
- The XML writer to write to.type
- The type of entity to write.entity
- The entity to write.- Throws:
XMLStreamException
-
setHint
Sets a hint for the writer.
-