public class DecorationUtils
extends java.lang.Object
Constructor and Description |
---|
DecorationUtils() |
Modifier and Type | Method and Description |
---|---|
static org.codehaus.plexus.util.xml.Xpp3Dom |
getCustomChild(org.codehaus.plexus.util.xml.Xpp3Dom custom,
java.lang.String path)
Helper to get decoration custom DOM element by simply specifying a dotted path.
|
static java.lang.String |
getCustomValue(org.codehaus.plexus.util.xml.Xpp3Dom custom,
java.lang.String path)
Helper to get decoration custom DOM element value by simply specifying a dotted path.
|
static java.lang.String |
getCustomValue(org.codehaus.plexus.util.xml.Xpp3Dom custom,
java.lang.String path,
java.lang.String defaultValue)
Helper to get decoration custom DOM element value by simply specifying a dotted path.
|
static boolean |
isLink(java.lang.String href) |
static boolean |
startsWithAnyIgnoreCase(java.lang.String string,
java.lang.String... searchStrings) |
private static boolean |
startsWithIgnoreCase(java.lang.String str,
java.lang.String prefix) |
public static boolean isLink(java.lang.String href)
private static boolean startsWithIgnoreCase(java.lang.String str, java.lang.String prefix)
public static boolean startsWithAnyIgnoreCase(java.lang.String string, java.lang.String... searchStrings)
public static org.codehaus.plexus.util.xml.Xpp3Dom getCustomChild(org.codehaus.plexus.util.xml.Xpp3Dom custom, java.lang.String path)
custom
- the custom DOM elementpath
- the dotted path to the childnull
if any element in the path does not existpublic static java.lang.String getCustomValue(org.codehaus.plexus.util.xml.Xpp3Dom custom, java.lang.String path)
custom
- the custom DOM elementpath
- the dotted path to the childnull
if any element in the path does not existpublic static java.lang.String getCustomValue(org.codehaus.plexus.util.xml.Xpp3Dom custom, java.lang.String path, java.lang.String defaultValue)
custom
- the custom DOM elementpath
- the dotted path to the childdefaultValue
- default value