Interface SitemapFactory
@NonNullByDefault
public interface SitemapFactory
- Author:
- Mark Herwege - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionCreates aButtonDefinitioninstanceCreates aMappinginstanceCreates aRuleinstancecreateSitemap(String sitemapName) Creates a newSitemapinstance with namesitemapName@Nullable WidgetcreateWidget(String widgetTypeName) Creates a newWidgetinstance of typewidgetTypeName@Nullable WidgetcreateWidget(String widgetTypeName, Parent parent) String[]Returns the list of all supported WidgetTypes of this Factory.
-
Method Details
-
createSitemap
Creates a newSitemapinstance with namesitemapName- Parameters:
sitemapName-- Returns:
- a new Sitemap.
-
createWidget
Creates a newWidgetinstance of typewidgetTypeName- Parameters:
widgetTypeName-- Returns:
- a new Widget of type
widgetTypeNameornullif no matching class is known.
-
createWidget
- Parameters:
widgetTypeName-parent-- Returns:
- a new Widget of type
widgetTypeNameornullif no matching class is known.
-
createButtonDefinition
ButtonDefinition createButtonDefinition()Creates aButtonDefinitioninstance- Returns:
- a new ButtonDefinition.
-
createMapping
Mapping createMapping()Creates aMappinginstance- Returns:
- a new Mapping.
-
createRule
Rule createRule()Creates aRuleinstance- Returns:
- a new Rule.
-
createCondition
Condition createCondition()- Returns:
- a new Rule Condition.
-
getSupportedWidgetTypes
String[] getSupportedWidgetTypes()Returns the list of all supported WidgetTypes of this Factory.- Returns:
- the supported WidgetTypes
-