Class NamableStringMediator
java.lang.Object
ch.nolix.base.validation.base.AbstractMediator
ch.nolix.base.validation.object.AbstractObjectMediator<String>
ch.nolix.base.validation.object.AbstractStringMediator
ch.nolix.base.validation.object.NamableStringMediator
A
NamableStringMediator is not mutable.- Author:
- Silvan Wyss
-
Field Summary
Fields inherited from class AbstractMediator
DEFAULT_ARGUMENT_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic NamableStringMediatorforArgument(String argument) thatIsNamed(String argumentName) Methods inherited from class AbstractStringMediator
hasLength, isEmpty, isNotBlank, isNotEmpty, isNotLongerThan, isNotShorterThan, matches, startsWithMethods inherited from class AbstractObjectMediator
fulfills, hasSameStringRepresentationAs, hasStringRepresentation, is, isEqualTo, isNot, isNotEqualTo, isNotNull, isNull, isOfType
-
Method Details
-
forArgument
- Parameters:
argument-- Returns:
- a new
NamableStringMediatorfor the given argument
-
thatIsNamed
- Parameters:
argumentName-- Returns:
- a new
StringMediatorfor the argument of the currentStringMediatorand the given argumentName - Throws:
RuntimeException- if the given argumentName is null or blank
-