Interface DatasetNameTrimmer
- All Known Implementing Classes:
DateTrimmer
,KeyValueTrimmer
,MultiDirDateTrimmer
,YearMonthTrimmer
public interface DatasetNameTrimmer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if the last part of a dataset can be trimmed.default String
getLastPart
(String name) Returns the last part of the dataset name.default boolean
hasMultipleDirectories
(String name) Checks if a name has more than one part when split by a slash separator.static String
removeLastPart
(String name) /** Removes the last part from the dataset name.default String
Trims the last part of the dataset name if it can be trimmed.
-
Field Details
-
SEPARATOR
- See Also:
-
-
Method Details
-
canTrim
Determines if the last part of a dataset can be trimmed.- Parameters:
name
-- Returns:
-
trim
Trims the last part of the dataset name if it can be trimmed.- Parameters:
name
-- Returns:
-
getLastPart
Returns the last part of the dataset name.- Parameters:
name
-- Returns:
-
hasMultipleDirectories
Checks if a name has more than one part when split by a slash separator.- Parameters:
name
-- Returns:
-
removeLastPart
/** Removes the last part from the dataset name.- Parameters:
name
- dataset name- Returns:
- dataset name without the last part
-