Class ExtensionWrapper
- java.lang.Object
-
- com.djrapitops.plan.extension.implementation.ExtensionWrapper
-
public class ExtensionWrapper extends java.lang.Object
Represents information defined in aDataExtension
class.Extracts objects that can be used to obtain data from a
DataExtension
.Goal of this class is to abstract away DataExtension API annotations so that they will not be needed outside when calling methods.
-
-
Constructor Summary
Constructors Constructor Description ExtensionWrapper(DataExtension extension)
Create an ExtensionWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallEvents[]
getCallEvents()
DataExtension
getExtension()
ExtensionExtractor
getExtractor()
java.util.Collection<java.lang.String>
getInvalidatedMethods()
java.util.Map<ExtensionMethod.ParameterType,ExtensionMethods>
getMethods()
Icon
getPluginIcon()
PluginInfo
getPluginInfo()
java.lang.String
getPluginName()
java.util.Collection<TabInformation>
getPluginTabs()
java.util.List<TabInfo>
getTabInformation()
java.util.Optional<java.lang.String[]>
getTabOrder()
java.util.Collection<java.lang.String>
getWarnings()
-
-
-
Constructor Detail
-
ExtensionWrapper
public ExtensionWrapper(DataExtension extension)
Create an ExtensionWrapper.- Parameters:
extension
- DataExtension to extract information from.- Throws:
java.lang.IllegalArgumentException
- If something is badly wrong with the specified extension class annotations.
-
-
Method Detail
-
getCallEvents
public CallEvents[] getCallEvents()
-
getExtension
public DataExtension getExtension()
-
getPluginName
public java.lang.String getPluginName()
-
getPluginIcon
public Icon getPluginIcon()
-
getPluginTabs
public java.util.Collection<TabInformation> getPluginTabs()
-
getTabOrder
public java.util.Optional<java.lang.String[]> getTabOrder()
-
getInvalidatedMethods
public java.util.Collection<java.lang.String> getInvalidatedMethods()
-
getWarnings
public java.util.Collection<java.lang.String> getWarnings()
-
getExtractor
public ExtensionExtractor getExtractor()
-
getPluginInfo
public PluginInfo getPluginInfo()
-
getTabInformation
public java.util.List<TabInfo> getTabInformation()
-
getMethods
public java.util.Map<ExtensionMethod.ParameterType,ExtensionMethods> getMethods()
-
-