Package org.codice.ddf.branding
Interface BrandingRegistry
public interface BrandingRegistry
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA functional interface forBrandingPluginmethods (cannot useFunctionsince some of them throw Exceptions) -
Method Summary
Modifier and TypeMethodDescriptionThis method takes in aBrandingPluginmethod reference (aBrandingRegistry.BrandingMethodand calls it on the highest priorityBrandingPluginin the system.This method returns the name portion of the name invalid input: '&' version of the product, as defined by the highest priorityBrandingPluginin the system..This method returns the version number portion of the name invalid input: '&' version of the product, as defined by the highest priorityBrandingPluginin the system..voidsetBrandingPlugins(List<BrandingPlugin> brandingPlugins)
-
Method Details
-
getProductName
String getProductName()This method returns the name portion of the name invalid input: '&' version of the product, as defined by the highest priorityBrandingPluginin the system.. E.g, if the full name is "DDF v1.0.0", this will return "DDF"- Returns:
- a String representing the name of the product or in the case where the name cannot be found, the String "DDF"
-
getAttributeFromBranding
This method takes in aBrandingPluginmethod reference (aBrandingRegistry.BrandingMethodand calls it on the highest priorityBrandingPluginin the system.- Returns:
- a String with the value of the
BrandingPlugin's method call or if the method call cannot be evaluated, an empty String ""
-
getProductVersion
String getProductVersion()This method returns the version number portion of the name invalid input: '&' version of the product, as defined by the highest priorityBrandingPluginin the system.. E.g, if the full name is "DDF v1.0.0", this will return "v1.0.0"- Returns:
- a String representing the version number of the product or in the case where the version number cannot be found, an empty String ""
-
setBrandingPlugins
- Parameters:
brandingPlugins- list of branding plugins associated with the system
-
getBrandingPlugins
List<BrandingPlugin> getBrandingPlugins()- Returns:
- the list of branding plugins associated with the system
-