-
Notifications
You must be signed in to change notification settings - Fork 642
Expand file tree
/
Copy pathSerializerPlugin.java
More file actions
56 lines (47 loc) · 2.01 KB
/
SerializerPlugin.java
File metadata and controls
56 lines (47 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package org.bimserver.plugins.serializers;
/******************************************************************************
* Copyright (C) 2009-2019 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see {@literal<http://www.gnu.org/licenses/>}.
*****************************************************************************/
import java.util.Set;
import org.bimserver.emf.Schema;
import org.bimserver.interfaces.objects.SPluginType;
import org.bimserver.plugins.Plugin;
import org.bimserver.plugins.PluginConfiguration;
public interface SerializerPlugin extends Plugin {
public static final String EXTENSION = "Extension";
public static final String ZIP_EXTENSION = "ZipExtension";
public static final String CONTENT_TYPE = "ContentType";
/**
* @return A serializer
*/
Serializer createSerializer(PluginConfiguration plugin);
/**
* @return The schemas supported by this serializer
*/
Set<Schema> getSupportedSchemas();
/**
* @return The output format this serializer outputs when the given Schema is used as the input. These formats have not been standardized, but a list is available on https://github.com/opensourceBIM/BIMserver/wiki/New-remote-service-interface#namespaces
*/
String getOutputFormat(Schema schema);
@Override
default public SPluginType getPluginType() {
return SPluginType.SERIALIZER;
}
/**
* @return Whether this plugin will be needing geometry
*/
Set<String> getRequiredGeometryFields();
}