public class SiteUtils extends Object
Constructor and Description |
---|
SiteUtils() |
Modifier and Type | Method and Description |
---|---|
static org.codehaus.plexus.util.xml.Xpp3Dom |
getCustomChild(org.codehaus.plexus.util.xml.Xpp3Dom custom,
String path)
Helper to get site custom DOM element by simply specifying a dotted path.
|
static String |
getCustomValue(org.codehaus.plexus.util.xml.Xpp3Dom custom,
String path)
Helper to get site 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 site custom DOM element value by simply specifying a dotted path.
|
static boolean |
isLink(String href) |
static boolean |
startsWithAnyIgnoreCase(String string,
String... searchStrings) |
public static boolean isLink(String href)
public static boolean startsWithAnyIgnoreCase(String string, String... searchStrings)
public static org.codehaus.plexus.util.xml.Xpp3Dom getCustomChild(org.codehaus.plexus.util.xml.Xpp3Dom custom, String path)
custom
- the custom DOM elementpath
- the dotted path to the childnull
if any element in the path does not existpublic static String getCustomValue(org.codehaus.plexus.util.xml.Xpp3Dom custom, String path)
custom
- the custom DOM elementpath
- the dotted path to the childnull
if any element in the path does not existpublic static String getCustomValue(org.codehaus.plexus.util.xml.Xpp3Dom custom, String path, String defaultValue)
custom
- the custom DOM elementpath
- the dotted path to the childdefaultValue
- default valueCopyright © 2005–2024 The Apache Software Foundation. All rights reserved.