As the current import semantics allow elements with nested character data to be imported as properties, it is not always possible to determine whether the element represents a node or a property from within the {@code startElement} method.Therefore, {@code ElementEntries} are initially created in an {@link ElementEntryState#TBD unknown state} and submitted tothe {@code destination} when it can be positively determined that the entry represents a property (if nested character datais encountered) or a node (if a child node is detected or the {@link XmlHandler#endElement(String,String,String)} methodis invoked prior to encountering nested character data).
As DNA does not currently support a way to add a value to an existing property through the Graph API, {@code ElementEntries} also contain a {@link Multimap} of property names to values. The node's properties are aggregated and onlysubmitted to the {@code destination} when the {@link XmlHandler#endElement(String,String,String)} event fires.
|
|
|
|