Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* WriteGraph.java April 2007
*
* Copyright (C) 2007, Niall Gallagher
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA
*/
package org.simpleframework.xml.strategy;
import org.simpleframework.xml.stream.NodeMap;
import java.util.IdentityHashMap;
import java.lang.reflect.Array;
/**
* The WriteGraph object is used to build the graph that
* is used to represent the serialized object and its references. The
* graph is stored in an IdentityHashMap which will
* store the objects in such a way that this graph object can tell if
* it has allready been written to the XML document. If an object has
* already been written to the XML document an reference attribute
* is added to the element representing the object and serialization
* of that object is complete, that is, no more elements are written.
*
* The attribute values written by this are unique strings, which
* allows the deserialization process to identify object references
* easily. By default these references are incrementing integers
* however for deserialization they can be any unique string value.
*
* @author Niall Gallagher
*/
class WriteGraph extends IdentityHashMap