All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jetbrains.plugin.structure.intellij.plugin.InvalidPlugin.kt Maven / Gradle / Ivy

Go to download

Library for parsing JetBrains IDE plugins. Can be used to verify that plugin complies with the JetBrains Marketplace requirements.

There is a newer version: 3.290
Show newest version
package com.jetbrains.plugin.structure.intellij.plugin

import com.jetbrains.plugin.structure.base.plugin.PluginIcon
import com.jetbrains.plugin.structure.base.plugin.ThirdPartyDependency
import com.jetbrains.plugin.structure.intellij.version.IdeVersion
import org.jdom2.Document
import org.jdom2.Element
import java.nio.file.Path

/**
 * An invalid plugin that was either not fully parsed or that has been parsed with syntax error in the descriptor.
 * Such placeholder class can be used in the verification engines to filter out specific verification rules
 * despite the incomplete or erroneous metadata from plugin descriptor.
 */
class InvalidPlugin(override val underlyingDocument: Document) : IdePlugin {
  override var pluginId: String? = null
  override var pluginName: String? = null
  override var pluginVersion: String? = null
  override var url: String? = null
  override var changeNotes: String? = null
  override var description: String? = null
  override var vendor: String? = null
  override var vendorEmail: String? = null
  override var vendorUrl: String? = null
  override var icons: List = emptyList()
  override var thirdPartyDependencies: List = emptyList()

  override val sinceBuild: IdeVersion? = null
  override val untilBuild: IdeVersion? = null
  override val extensions: Map> = emptyMap()
  override val appContainerDescriptor: IdePluginContentDescriptor = MutableIdePluginContentDescriptor()
  override val projectContainerDescriptor: IdePluginContentDescriptor = MutableIdePluginContentDescriptor()
  override val moduleContainerDescriptor: IdePluginContentDescriptor = MutableIdePluginContentDescriptor()
  override val dependencies: List = emptyList()
  override val incompatibleModules: List = emptyList()
  override val definedModules: Set = emptySet()
  override val optionalDescriptors: List = emptyList()
  override val modulesDescriptors: List = emptyList()
  override val originalFile: Path? = null
  override val productDescriptor: ProductDescriptor? = null
  override val declaredThemes: List = emptyList()
  override val useIdeClassLoader: Boolean = false
  override val isImplementationDetail: Boolean = false
  override val isV2: Boolean = false
  override fun isCompatibleWithIde(ideVersion: IdeVersion): Boolean = false
  override val hasDotNetPart: Boolean = false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy