Class MorphUtils


  • public class MorphUtils
    extends java.lang.Object
    Covenient class for registering standard morphers to a ConvertRegistry.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.math.BigDecimal BIGDECIMAL_ONE
      Constant value for BigDecimal(1)
      static java.math.BigDecimal BIGDECIMAL_ZERO
      Constant value for BigDecimal(0)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MorphUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void registerStandardMorphers​(MorpherRegistry morpherRegistry)
      Clears and registers all standard morpehrs.
      static void registerStandardObjectArrayMorphers​(MorpherRegistry morpherRegistry)
      Registers morphers for arrays of wrappers and String with standard default values.
      Boolean - Boolean.FALSE Character - new Character('\0') Byte - new Byte( (byte)0 ) Short - new Short( (short)0 ) Integer - new Integer( 0 ) Long - new Long( 0 ) Float - new Float( 0 ) Double - new Double( 0 ) String - null BigInteger - BigInteger.ZERO BigDecimal - MorphUtils.BIGDECIMAL_ZERO
      static void registerStandardObjectMorphers​(MorpherRegistry morpherRegistry)
      Registers morphers for wrappers and String with standard default values.
      Boolean - Boolean.FALSE Character - new Character('\0') Byte - new Byte( (byte)0 ) Short - new Short( (short)0 ) Integer - new Integer( 0 ) Long - new Long( 0 ) Float - new Float( 0 ) Double - new Double( 0 ) String - null BigInteger - BigInteger.ZERO BigDecimal - MorphUtils.BIGDECIMAL_ZERO
      static void registerStandardPrimitiveArrayMorphers​(MorpherRegistry morpherRegistry)
      Registers morphers for arrays of primitives with standard default values.
      boolean - false char - '\0' byte - 0 short - 0 int - 0 long - 0 float - 0 double - 0
      static void registerStandardPrimitiveMorphers​(MorpherRegistry morpherRegistry)
      Registers morphers for primitives with standard default values.
      boolean - false char - '\0' byte - 0 short - 0 int - 0 long - 0 float - 0 double - 0
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BIGDECIMAL_ONE

        public static final java.math.BigDecimal BIGDECIMAL_ONE
        Constant value for BigDecimal(1)
      • BIGDECIMAL_ZERO

        public static final java.math.BigDecimal BIGDECIMAL_ZERO
        Constant value for BigDecimal(0)
    • Constructor Detail

      • MorphUtils

        private MorphUtils()
    • Method Detail

      • registerStandardMorphers

        public static void registerStandardMorphers​(MorpherRegistry morpherRegistry)
        Clears and registers all standard morpehrs.
        Parameters:
        morpherRegistry -
      • registerStandardObjectArrayMorphers

        public static void registerStandardObjectArrayMorphers​(MorpherRegistry morpherRegistry)
        Registers morphers for arrays of wrappers and String with standard default values.
        • Boolean - Boolean.FALSE
        • Character - new Character('\0')
        • Byte - new Byte( (byte)0 )
        • Short - new Short( (short)0 )
        • Integer - new Integer( 0 )
        • Long - new Long( 0 )
        • Float - new Float( 0 )
        • Double - new Double( 0 )
        • String - null
        • BigInteger - BigInteger.ZERO
        • BigDecimal - MorphUtils.BIGDECIMAL_ZERO
        Parameters:
        morpherRegistry -
      • registerStandardObjectMorphers

        public static void registerStandardObjectMorphers​(MorpherRegistry morpherRegistry)
        Registers morphers for wrappers and String with standard default values.
        • Boolean - Boolean.FALSE
        • Character - new Character('\0')
        • Byte - new Byte( (byte)0 )
        • Short - new Short( (short)0 )
        • Integer - new Integer( 0 )
        • Long - new Long( 0 )
        • Float - new Float( 0 )
        • Double - new Double( 0 )
        • String - null
        • BigInteger - BigInteger.ZERO
        • BigDecimal - MorphUtils.BIGDECIMAL_ZERO
        Parameters:
        morpherRegistry -
      • registerStandardPrimitiveArrayMorphers

        public static void registerStandardPrimitiveArrayMorphers​(MorpherRegistry morpherRegistry)
        Registers morphers for arrays of primitives with standard default values.
        • boolean - false
        • char - '\0'
        • byte - 0
        • short - 0
        • int - 0
        • long - 0
        • float - 0
        • double - 0
        Parameters:
        morpherRegistry -
      • registerStandardPrimitiveMorphers

        public static void registerStandardPrimitiveMorphers​(MorpherRegistry morpherRegistry)
        Registers morphers for primitives with standard default values.
        • boolean - false
        • char - '\0'
        • byte - 0
        • short - 0
        • int - 0
        • long - 0
        • float - 0
        • double - 0
        Parameters:
        morpherRegistry -