Class DatamodelConverter

java.lang.Object
org.wikidata.wdtk.datamodel.helpers.DatamodelConverter
All Implemented Interfaces:
SnakVisitor<Snak>, ValueVisitor<Value>

public class DatamodelConverter extends Object implements SnakVisitor<Snak>, ValueVisitor<Value>
Class to re-create data model objects using a specified factory. This is provided in place of having copy constructors in each and every implementation of the data model. Note that data model objects are usually immutable and do not need to be copied. The use of this class is to convert data objects to a specific implementation, as might be needed for some specialized purpose (e.g., for JSON export).
Author:
Markus Kroetzsch