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()
java.util.Collection<java.lang.String>
getInvalidatedMethods()
Icon
getPluginIcon()
java.lang.String
getPluginName()
java.util.Collection<TabInformation>
getPluginTabs()
DataProviders
getProviders()
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()
-
getProviders
public DataProviders getProviders()
-
getWarnings
public java.util.Collection<java.lang.String> getWarnings()
-
-