Class ExtendedStringMediator
java.lang.Object
ch.nolix.base.validation.base.AbstractMediator
ch.nolix.base.validation.object.AbstractObjectMediator<String>
ch.nolix.base.validation.object.StringMediator
ch.nolix.base.validation.object.ExtendedStringMediator
An extended string mediator is not mutable.
- Author:
- Silvan Wyss
-
Field Summary
Fields inherited from class AbstractMediator
DEFAULT_ARGUMENT_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtendedStringMediatorforArgument(String argument) thatIsNamed(Class<?> type) thatIsNamed(String argumentName) Methods inherited from class StringMediator
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
ExtendedStringMediatorfor the given argument.
-
thatIsNamed
- Parameters:
type-- Returns:
- a new
StringMediatorfor the argument of the currentExtendedStringMediator.
-
thatIsNamed
- Parameters:
argumentName-- Returns:
- a new string mediator for the argument of this extended string mediator with the given argument name.
- Throws:
RuntimeException- if the given argument name is null.RuntimeException- if the given argument name is empty.
-