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