Class Menu
- java.lang.Object
-
- org.devacfr.maven.skins.reflow.model.Menu
-
public class Menu extends Object
- Since:
- 2.0
- Author:
- Christophe Friederich
-
-
Constructor Summary
Constructors Constructor Description Menu(ISkinConfig config, org.apache.maven.doxia.site.LinkItem item)Initialize withLinkItem.Menu(ISkinConfig config, org.apache.maven.doxia.site.Menu menu)Initialize withMenu.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHref()org.apache.maven.doxia.site.ImagegetImage()StringgetInherit()List<MenuItem>getMenuItems()StringgetName()StringgetTarget()booleanisActive()static booleanmatches(String regex, org.apache.maven.doxia.site.Menu menu)Gets indicating whether menu by their ref or name, and returns the matching results.
-
-
-
Constructor Detail
-
Menu
public Menu(@Nonnull ISkinConfig config, @Nonnull org.apache.maven.doxia.site.LinkItem item)
Initialize withLinkItem.- Parameters:
config- a config (can not benull).item- link item used to.
-
Menu
public Menu(@Nonnull ISkinConfig config, @Nonnull org.apache.maven.doxia.site.Menu menu)
Initialize withMenu.- Parameters:
config- a config (can not benull).menu- menu used to.
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name
-
getInherit
public String getInherit()
- Returns:
- the inherit
-
isActive
public boolean isActive()
- Returns:
- the active
-
getHref
public String getHref()
- Returns:
- the href
-
getImage
public org.apache.maven.doxia.site.Image getImage()
- Returns:
- the image
-
getTarget
public String getTarget()
- Returns:
- the target
-
matches
public static boolean matches(@Nonnull String regex, @Nonnull org.apache.maven.doxia.site.Menu menu)
Gets indicating whether menu by their ref or name, and returns the matching results. The regex is used to check the match.- Parameters:
regex- regex to use.menu- the menu to check- Returns:
- Returns
truewhether menu matches with regex.
-
-