Package de.espirit.firstspirit.generate
Interface UrlCreatorSpecification
public interface UrlCreatorSpecification
Specification container for url creator.
- Since:
- 5.0.17
-
Method Summary
Modifier and TypeMethodDescriptionCreate a newUrlCreator
instance with thespecified settings from the module.xml
.createUrlCreator
(Map<String, String> settings) Create a newUrlCreator
instance with custom settings.@Nullable UrlFactory
In case the specification provides a validUrlFactory
class name for the property "urlfactory" this will deliver a new instance of the specified class.@Nullable String
Legacy class name (for backward compatibility only).getName()
Name definition from the module.xml.Default settings, specified in the module.xml file.boolean
Visibility flag from the module.xml file.
-
Method Details
-
getName
String getName()Name definition from the module.xml.- Returns:
- The name definition (extracted from the module.xml).
- Since:
- 5.0.17
-
createUrlCreator
UrlCreator createUrlCreator()Create a newUrlCreator
instance with thespecified settings from the module.xml
.- Returns:
- UrlCreator New instance.
- Since:
- 5.0.17
- See Also:
-
createUrlCreator
Create a newUrlCreator
instance with custom settings.- Parameters:
settings
- custom settings (overriding the settings from the module.xml).- Returns:
- UrlCreator New instance.
- Since:
- 5.0.17
-
createUrlFactory
In case the specification provides a validUrlFactory
class name for the property "urlfactory" this will deliver a new instance of the specified class. In all other cases this will delivernull
. Please note that the "Advanced URLs" specification is the only FirstSpirit standard specification where a value!= null
is returned here.- Returns:
- A new UrlCreator instance or
null
. - Since:
- 5.2.190300
-
getSettings
Default settings, specified in the module.xml file.- Returns:
- The specified settings from the module.xml.
- Since:
- 5.0.17
-
getLegacyClassName
Legacy class name (for backward compatibility only).- Returns:
- Legacy class name (may be
null
). - Since:
- 5.0.17
- See Also:
-
isVisible
boolean isVisible()Visibility flag from the module.xml file.- Returns:
- Visbility (default is
true
). - Since:
- 5.0.17
- See Also:
-