-
Notifications
You must be signed in to change notification settings - Fork 37
/
PluginBean.java
50 lines (42 loc) · 2.39 KB
/
PluginBean.java
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
/*
* Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.jetbrains.plugin.structure.intellij.beans;
import org.jdom2.Element;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@XmlSeeAlso(ListItemBean.class)
@XmlRootElement(name = "idea-plugin")
public class PluginBean {
@XmlElement(name = "change-notes") public String changeNotes;
@XmlElement(name = "description") public String description;
@XmlElement(name = "name") public String name;
@XmlElement(name = "id") public String id;
@XmlAttribute(name = "version") public String formatVersion;
@XmlElement(name = "version") public String pluginVersion;
@XmlElement(name = "vendor") public PluginVendorBean vendor;
@XmlElement(name = "idea-version") public IdeaVersionBean ideaVersion;
@XmlElement(name = "product-descriptor") public ProductDescriptorBean productDescriptor;
@XmlElement(name = "is-internal") public boolean isInternal = true;
@XmlElement(name = "depends") public List<PluginDependencyBean> dependencies = new ArrayList<>();
@XmlElement(name = "dependencies") public PluginDependenciesBean dependenciesV2;
@XmlElement(name = "content") public List<PluginContentBean> pluginContent = new ArrayList<>();
@XmlElement(name = "incompatible-with") public List<String> incompatibleModules = new ArrayList<>();
@XmlElement(name = "helpset") public List<PluginHelpSetBean> helpSets = new ArrayList<>();
@XmlElement(name = "category") public String category;
@XmlElement(name = "resource-bundle") public String resourceBundle;
@XmlAttribute(name = "url") public String url = "";
@XmlAttribute(name = "use-idea-classloader") public Boolean useIdeaClassLoader;
@XmlAttribute(name = "allow-bundled-update") public Boolean allowBundledUpdate;
@XmlAttribute(name = "implementation-detail") public Boolean implementationDetail;
@XmlAttribute(name = "package") public String packageName;
@XmlElement(name = "module")
@XmlJavaTypeAdapter(ListItemAdapter.class)
public List<String> modules = new ArrayList<>();
@XmlTransient public Map<String, List<Element>> extensions;
@XmlTransient public List<Element> applicationListeners;
@XmlTransient public List<Element> projectListeners;
}