
org.carrot2.util.simplexml.MapSimpleXmlWrapper Maven / Gradle / Ivy
/*
* Carrot2 project.
*
* Copyright (C) 2002-2019, Dawid Weiss, Stanisław Osiński.
* All rights reserved.
*
* Refer to the full license file "carrot2.LICENSE"
* in the root folder of the repository checkout or at:
* http://www.carrot2.org/carrot2.LICENSE
*/
package org.carrot2.util.simplexml;
import java.util.HashMap;
import java.util.Map;
import org.carrot2.util.MapUtils;
import org.simpleframework.xml.ElementMap;
import org.simpleframework.xml.Root;
import org.simpleframework.xml.core.Commit;
import org.simpleframework.xml.core.Persist;
/**
* A wrapper for serializing maps with {@link String}s as keys.
*/
@Root(name = "map")
@SuppressWarnings(
{
"unchecked", "rawtypes"
})
class MapSimpleXmlWrapper implements ISimpleXmlWrapper
© 2015 - 2025 Weber Informatics LLC | Privacy Policy