Class DecorationUtils
java.lang.Object
org.apache.maven.doxia.site.decoration.DecorationUtils
Decoration model utilities.
- Since:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.codehaus.plexus.util.xml.Xpp3Dom
getCustomChild
(org.codehaus.plexus.util.xml.Xpp3Dom custom, String path) Helper to get decoration custom DOM element by simply specifying a dotted path.static String
getCustomValue
(org.codehaus.plexus.util.xml.Xpp3Dom custom, String path) Helper to get decoration custom DOM element value by simply specifying a dotted path.static String
getCustomValue
(org.codehaus.plexus.util.xml.Xpp3Dom custom, String path, String defaultValue) Helper to get decoration custom DOM element value by simply specifying a dotted path.static boolean
static boolean
startsWithAnyIgnoreCase
(String string, String... searchStrings) private static boolean
startsWithIgnoreCase
(String str, String prefix)
-
Constructor Details
-
DecorationUtils
public DecorationUtils()
-
-
Method Details
-
isLink
-
startsWithIgnoreCase
-
startsWithAnyIgnoreCase
-
getCustomChild
public static org.codehaus.plexus.util.xml.Xpp3Dom getCustomChild(org.codehaus.plexus.util.xml.Xpp3Dom custom, String path) Helper to get decoration custom DOM element by simply specifying a dotted path.- Parameters:
custom
- the custom DOM elementpath
- the dotted path to the child- Returns:
null
if any element in the path does not exist- Since:
- 1.8
-
getCustomValue
Helper to get decoration custom DOM element value by simply specifying a dotted path.- Parameters:
custom
- the custom DOM elementpath
- the dotted path to the child- Returns:
- the element value or
null
if any element in the path does not exist - Since:
- 1.8
-
getCustomValue
public static String getCustomValue(org.codehaus.plexus.util.xml.Xpp3Dom custom, String path, String defaultValue) Helper to get decoration custom DOM element value by simply specifying a dotted path.- Parameters:
custom
- the custom DOM elementpath
- the dotted path to the childdefaultValue
- default value- Returns:
- the element value or the default value if any element in the path does not exist
- Since:
- 1.8
-