org.bimserver.deserializers.JsonStreamingDeserializerPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ifcplugins Show documentation
Show all versions of ifcplugins Show documentation
BIMserver plugin that provides IFC serializers/deserializers
The newest version!
package org.bimserver.deserializers;
import java.util.HashSet;
import java.util.Set;
import org.bimserver.emf.Schema;
import org.bimserver.models.store.ObjectDefinition;
import org.bimserver.plugins.PluginConfiguration;
import org.bimserver.plugins.PluginContext;
import org.bimserver.plugins.deserializers.StreamingDeserializer;
import org.bimserver.plugins.deserializers.StreamingDeserializerPlugin;
import org.bimserver.shared.exceptions.PluginException;
public class JsonStreamingDeserializerPlugin implements StreamingDeserializerPlugin {
@Override
public void init(PluginContext pluginContext, PluginConfiguration systemSettings) throws PluginException {
}
@Override
public ObjectDefinition getUserSettingsDefinition() {
return null;
}
@Override
public ObjectDefinition getSystemSettingsDefinition() {
return null;
}
@Override
public StreamingDeserializer createDeserializer(PluginConfiguration pluginConfiguration) {
return new JsonStreamingDeserializer();
}
@Override
public boolean canHandleExtension(String extension) {
return extension.contentEquals("json");
}
@Override
public Set getSupportedSchemas() {
Set set = new HashSet<>();
set.add(Schema.IFC2X3TC1);
set.add(Schema.IFC4);
return set;
}
}