javolution.xml.XMLReferenceResolver Maven / Gradle / Ivy
/*
* Javolution - Java(TM) Solution for Real-Time and Embedded Systems
* Copyright (C) 2012 - Javolution (http://javolution.org/)
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software is
* freely granted, provided that this notice is preserved.
*/
package javolution.xml;
import javolution.text.CharArray;
import javolution.text.TextBuilder;
import javolution.util.FastMap;
import javolution.util.FastTable;
import javolution.util.Index;
import javolution.util.function.Equalities;
import javolution.xml.stream.XMLStreamException;
/**
* This class represents a resolver for XML cross references during
* the marshalling/unmarshalling process.
*
* Instances of this class may only be shared by {@link XMLObjectReader}/
* {@link XMLObjectWriter} running sequentially (for cross references
* spawning multiple documents).
*
* @author Jean-Marie Dautelle
* @version 4.0, September 4, 2006
*/
public class XMLReferenceResolver {
/**
* Holds object to identifier (FastTable.Index) mapping.
*/
private FastMap