com.atlassian.plugin.parsers
Class PluginDescriptorReader

java.lang.Object
  extended by com.atlassian.plugin.parsers.PluginDescriptorReader

public final class PluginDescriptorReader
extends java.lang.Object

A simple class to read the basic elements of a plugin descriptor.

Since:
3.0.0

Constructor Summary
PluginDescriptorReader(org.dom4j.Document descriptor, java.util.Set<Application> applications)
           
 
Method Summary
 org.dom4j.Document getDescriptor()
           
 com.atlassian.fugue.Option<java.lang.String> getI18nPluginNameKey()
           
 java.lang.Iterable<ModuleReader> getModuleReaders(InstallationMode installationMode)
           
 java.lang.Iterable<org.dom4j.Element> getModules(InstallationMode installationMode)
           
 com.atlassian.fugue.Option<org.dom4j.Element> getPluginInformation()
           
 PluginInformationReader getPluginInformationReader()
           
 java.lang.String getPluginKey()
           
 java.lang.String getPluginName()
           
 int getPluginsVersion()
           
 Resources getResources()
           
 boolean isEnabledByDefault()
           
 boolean isSystemPlugin()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginDescriptorReader

public PluginDescriptorReader(org.dom4j.Document descriptor,
                              java.util.Set<Application> applications)
Method Detail

getDescriptor

public org.dom4j.Document getDescriptor()

getPluginKey

public java.lang.String getPluginKey()

getPluginName

public java.lang.String getPluginName()

isSystemPlugin

public boolean isSystemPlugin()

getI18nPluginNameKey

public com.atlassian.fugue.Option<java.lang.String> getI18nPluginNameKey()

isEnabledByDefault

public boolean isEnabledByDefault()

getPluginInformation

public com.atlassian.fugue.Option<org.dom4j.Element> getPluginInformation()

getPluginInformationReader

public PluginInformationReader getPluginInformationReader()

getModules

public java.lang.Iterable<org.dom4j.Element> getModules(InstallationMode installationMode)

getModuleReaders

public java.lang.Iterable<ModuleReader> getModuleReaders(InstallationMode installationMode)

getResources

public Resources getResources()

getPluginsVersion

public int getPluginsVersion()


Copyright © 2013 Atlassian. All Rights Reserved.