public class Menu extends Object
Constructor and Description |
---|
Menu(ISkinConfig config,
org.apache.maven.doxia.site.LinkItem item)
Initialize with
LinkItem . |
Menu(ISkinConfig config,
org.apache.maven.doxia.site.Menu menu)
Initialize with
Menu . |
Modifier and Type | Method and Description |
---|---|
String |
getHref() |
org.apache.maven.doxia.site.Image |
getImage() |
String |
getInherit() |
List<MenuItem> |
getMenuItems() |
String |
getName() |
String |
getTarget() |
boolean |
isActive() |
static boolean |
matches(String regex,
org.apache.maven.doxia.site.Menu menu)
Gets indicating whether menu by their ref or name, and returns the matching results.
|
public Menu(@Nonnull ISkinConfig config, @Nonnull org.apache.maven.doxia.site.LinkItem item)
LinkItem
.config
- a config (can not be null
).item
- link item used to.public Menu(@Nonnull ISkinConfig config, @Nonnull org.apache.maven.doxia.site.Menu menu)
Menu
.config
- a config (can not be null
).menu
- menu used to.public String getName()
public String getInherit()
public boolean isActive()
public String getHref()
public org.apache.maven.doxia.site.Image getImage()
public String getTarget()
public static boolean matches(@Nonnull String regex, @Nonnull org.apache.maven.doxia.site.Menu menu)
regex
- regex to use.menu
- the menu to checktrue
whether menu matches with regex.Copyright © 2012–2023 Friederich Christophe. All rights reserved.