Package com.codiform.moo

Examples of com.codiform.moo.IncompatibleTypeTranslationException


      if (!canSupportNull()) {
        throw new NullUnsupportedTranslationException( getName(), getType() );
      }
    } else if (getType().isPrimitive()) {
      if (!PrimitiveAssignment.isCompatible(getType(), value.getClass())) {
        throw new IncompatibleTypeTranslationException( value, getName(), getType() );
      }
    } else if (value.getClass().isPrimitive()) {
      if (!PrimitiveAssignment.isCompatible(value.getClass(), getType())) {
        throw new IncompatibleTypeTranslationException( value, getName(), getType() );
      }
    } else if (!getType().isAssignableFrom(value.getClass())) {
      throw new IncompatibleTypeTranslationException( value, getName(), getType() );
    }
  }
View Full Code Here


            "Cannot store null in primitive field " + getName()
                + " (" + getType().getSimpleName() + ")");
      }
    } else if (getType().isPrimitive()) {
      if (!PrimitiveAssignment.isCompatible(getType(), value.getClass())) {
        throw new IncompatibleTypeTranslationException( value, getName(), getType() );
      }
    } else if (value.getClass().isPrimitive()) {
      if (!PrimitiveAssignment.isCompatible(value.getClass(), getType())) {
        throw new IncompatibleTypeTranslationException( value, getName(), getType() );
      }
    } else if (!getType().isAssignableFrom(value.getClass())) {
      throw new IncompatibleTypeTranslationException( value, getName(), getType() );
    }
  }
View Full Code Here

            "Cannot store null in primitive field " + getName()
                + " (" + getType().getSimpleName() + ")");
      }
    } else if (getType().isPrimitive()) {
      if (!PrimitiveAssignment.isCompatible(getType(), value.getClass())) {
        throw new IncompatibleTypeTranslationException( value, getName(), getType() );
      }
    } else if (value.getClass().isPrimitive()) {
      if (!PrimitiveAssignment.isCompatible(value.getClass(), getType())) {
        throw new IncompatibleTypeTranslationException( value, getName(), getType() );
      }
    } else if (!getType().isAssignableFrom(value.getClass())) {
      throw new IncompatibleTypeTranslationException( value, getName(), getType() );
    }
  }
View Full Code Here

TOP

Related Classes of com.codiform.moo.IncompatibleTypeTranslationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.