Class PatternToPattern
- java.lang.Object
-
- de.gebit.integrity.parameter.conversion.Conversion<java.util.regex.Pattern,java.util.regex.Pattern>
-
- de.gebit.integrity.parameter.conversion.conversions.java.identity.PatternToPattern
-
public class PatternToPattern extends Conversion<java.util.regex.Pattern,java.util.regex.Pattern>
A default Integrity conversion. This conversion actually doesn't convert anything - it just returns the input. This special conversion is not part of the normal bunch of conversions which is scanned to find a matching one, but only used to handle special cases.- Author:
- Rene Schneider - initial API and implementation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.gebit.integrity.parameter.conversion.Conversion
Conversion.Priority
-
-
Constructor Summary
Constructors Constructor Description PatternToPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.regex.Pattern
convert(java.util.regex.Pattern aSource, java.lang.Class<? extends java.util.regex.Pattern> aTargetType, ConversionContext aConversionContext)
Performs the conversion.-
Methods inherited from class de.gebit.integrity.parameter.conversion.Conversion
convertValueRecursive, convertValueToFormattedStringArrayRecursive, setVisitedObjects
-
-
-
-
Method Detail
-
convert
public java.util.regex.Pattern convert(java.util.regex.Pattern aSource, java.lang.Class<? extends java.util.regex.Pattern> aTargetType, ConversionContext aConversionContext) throws ConversionFailedException
Description copied from class:Conversion
Performs the conversion.- Specified by:
convert
in classConversion<java.util.regex.Pattern,java.util.regex.Pattern>
- Parameters:
aSource
- the source object to convertaTargetType
- TODOaConversionContext
- controls some conversion parameters and rules; may be null if the defaultConversionContext
values shall be used- Returns:
- the converted object
- Throws:
ConversionFailedException
- in case of conversion errors
-
-