Package se.conciliate.extensions.xml
Interface RepositoryXMLReader
public interface RepositoryXMLReader
Updates repository entities from XML created by a
RepositoryXMLWriter
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptiongetElementInfo
(XMLEventReader reader) Returns info about the next element in the stream.<T> void
readEntity
(XMLEventReader reader, Class<T> type, T entity) Updates an entity from XML.void
Sets a hint for the reader.
-
Field Details
-
HINT_READ_PLUGIN_DATA
- See Also:
-
VALUE_READ_PLUGIN_DATA_TRUE
- See Also:
-
VALUE_READ_PLUGIN_DATA_FALSE
- See Also:
-
HINT_READ_EXTENSION_DOCUMENTS
- See Also:
-
VALUE_READ_EXTENSION_DOCUMENTS_TRUE
- See Also:
-
VALUE_READ_EXTENSION_DOCUMENTS_FALSE
- See Also:
-
HINT_TEXT_OBJECT_BORDER_COLORS
- See Also:
-
HINT_TEXT_OBJECT_FILL_COLORS
- See Also:
-
HINT_COPY_MODELS_AND_OBJECTS
- See Also:
-
VALUE_COPY_MODELS_AND_OBJECTS_TRUE
- See Also:
-
VALUE_COPY_MODELS_AND_OBJECTS_FALSE
- See Also:
-
HINT_STATUS_KEY_MAP
- See Also:
-
HINT_CATEGORY_KEY_MAP
- See Also:
-
HINT_EXPORT_VERSION
- See Also:
-
HINT_COMPATIBILITY_LEVEL
- See Also:
-
-
Method Details
-
getElementInfo
Returns info about the next element in the stream. This does not consume the element, it only peeks at the next element in the stream.- Parameters:
reader
- The XML reader to read from.- Returns:
- Element info or
null
if the next event is not a start element or if the element is not a recognized entity element. - Throws:
XMLStreamException
-
readEntity
Updates an entity from XML.- Parameters:
reader
- The XML reader to read from.type
- The type of entity to update.entity
- The entity to update.- Throws:
XMLStreamException
-
setHint
Sets a hint for the reader.
-