Package org.opennms.core.utils
Class LocationUtils
- java.lang.Object
-
- org.opennms.core.utils.LocationUtils
-
public class LocationUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_LOCATION_NAME
-
Constructor Summary
Constructors Constructor Description LocationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
doesLocationsMatch(String location1, String location2)
static String
getEffectiveLocationName(String locationName)
Returns the effective location name, using the default value if the given location name is null or an empty string.static boolean
isDefaultLocationName(String locationName)
Returns true if the given location name is null, an empty string, or the system default.
-
-
-
Field Detail
-
DEFAULT_LOCATION_NAME
public static final String DEFAULT_LOCATION_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEffectiveLocationName
public static String getEffectiveLocationName(String locationName)
Returns the effective location name, using the default value if the given location name is null or an empty string.- Parameters:
locationName
-- Returns:
- the effective location name
-
isDefaultLocationName
public static boolean isDefaultLocationName(String locationName)
Returns true if the given location name is null, an empty string, or the system default.- Parameters:
locationName
-- Returns:
-
-