Package org.ametys.runtime.model
Record Class ItemParserHelper.ConfigurationAndPluginName
java.lang.Object
java.lang.Record
org.ametys.runtime.model.ItemParserHelper.ConfigurationAndPluginName
- Record Components:
configuration- the configuration itselfpluginName- the name of the plugin in which is declared the configurationdefaultI18nCatalog- the default catalog to use for i18n
- Enclosing class:
ItemParserHelper
public static record ItemParserHelper.ConfigurationAndPluginName(Configuration configuration, String pluginName, String defaultI18nCatalog)
extends Record
Stores a configuration and the name of the plugin in which is declared the configuration
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationAndPluginName(Configuration config, String plugin) A configuration and its plugin nameConfigurationAndPluginName(Configuration configuration, String pluginName, String defaultI18nCatalog) Creates an instance of aConfigurationAndPluginNamerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord component.Returns the value of thedefaultI18nCatalogrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepluginNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigurationAndPluginName
A configuration and its plugin name- Parameters:
config- the configuration itselfplugin- the name of the plugin in which is declared the configuration
-
ConfigurationAndPluginName
public ConfigurationAndPluginName(Configuration configuration, String pluginName, String defaultI18nCatalog) Creates an instance of aConfigurationAndPluginNamerecord class.- Parameters:
configuration- the value for theconfigurationrecord componentpluginName- the value for thepluginNamerecord componentdefaultI18nCatalog- the value for thedefaultI18nCatalogrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
pluginName
Returns the value of thepluginNamerecord component.- Returns:
- the value of the
pluginNamerecord component
-
defaultI18nCatalog
Returns the value of thedefaultI18nCatalogrecord component.- Returns:
- the value of the
defaultI18nCatalogrecord component
-