com.jetbrains.plugin.structure.intellij.beans.PluginBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-intellij Show documentation
Show all versions of structure-intellij Show documentation
Library for parsing JetBrains IDE plugins. Can be used to verify that plugin complies with the JetBrains Marketplace requirements.
/*
* 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 dependencies = new ArrayList<>();
@XmlElement(name = "dependencies") public PluginDependenciesBean dependenciesV2;
@XmlElement(name = "content") public List pluginContent = new ArrayList<>();
@XmlElement(name = "incompatible-with") public List incompatibleModules = new ArrayList<>();
@XmlElement(name = "helpset") public List 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 modules = new ArrayList<>();
@XmlTransient public Map> extensions;
@XmlTransient public List applicationListeners;
@XmlTransient public List projectListeners;
}