public boolean isMapKey() { return tail.isMapKey(); }
public boolean isMapKey() { return tail.isMapKey(); }
public String generateMappingCode(FieldMap fieldMap, VariableRef source, VariableRef destination, SourceCodeContext code) { LOGGER.debug("PrimitiveAndObject condition occurred; context: " + "\nsrc: " + source.property() + "\nsrc.isArrayElement: " + source.property().isArrayElement() + "\nsrc.isListElement: " + source.property().isListElement() + "\nsrc.isMapKey: " + source.property().isMapKey() + "\ndest: " + destination.property() + "\ndest.isArrayElement: " + destination.property().isArrayElement() + "\ndest.isListElement: " + destination.property().isListElement() + "\ndest.isMapKey: " + destination.property().isMapKey() ); throw new MappingException("Encountered mapping of primitive to object (or vise-versa); sourceType="+ source.type() + ", destinationType=" + destination.type()); }
public boolean appliesTo(FieldMap fieldMap) { return (fieldMap.getSource().isMapKey() || fieldMap.getSource().isArrayElement() || fieldMap.getSource().isListElement()) && (TypeFactory.TYPE_OF_OBJECT.equals(fieldMap.getSource().getType())); }
public boolean appliesTo(FieldMap fieldMap) { return (fieldMap.getDestination().isMapKey() || fieldMap.getDestination().isArrayElement() || fieldMap.getDestination().isListElement()) && (TypeFactory.TYPE_OF_OBJECT.equals(fieldMap.getDestination().getType())); }
public boolean apply(FieldMap fieldMap) { return fieldMap.getDestination().isMapKey() && (fieldMap.getSource().getType().isImmutable() || (!fieldMap.getSource().isCollection() && !fieldMap.getSource().isArray() && !fieldMap.getSource().isMap() && !fieldMap.getSource().isEnum())); } };
public boolean apply(FieldMap fieldMap) { return fieldMap.getSource().isMapKey() && (fieldMap.getDestination().getType().isImmutable() || (!fieldMap.getDestination().isCollection() && !fieldMap.getDestination().isArray() && !fieldMap.getDestination().isMap() && !fieldMap.getDestination() .isEnum())); } };
public boolean apply(FieldMap fieldMap) { return fieldMap.getSource().isMapKey() && (ClassUtil.isImmutable(fieldMap.getDestination().getType()) || (!fieldMap.getDestination().isCollection() && !fieldMap.getDestination().isArray() && !fieldMap.getDestination().isMap() && !fieldMap.getDestination() .isEnum())); } };
public boolean apply(FieldMap fieldMap) { return fieldMap.getDestination().isMapKey() && (ClassUtil.isImmutable(fieldMap.getSource().getType()) || (!fieldMap.getSource().isCollection() && !fieldMap.getSource().isArray() && !fieldMap.getSource().isMap() && !fieldMap.getSource().isEnum())); } };
public boolean appliesTo(FieldMap fieldMap) { return (fieldMap.getDestination().isMapKey() || fieldMap.getDestination().isArrayElement() || fieldMap.getDestination().isListElement()) && (ClassUtil.isImmutable(fieldMap.getSource().getType()) || (!fieldMap.getSource().isCollection() && !fieldMap.getSource().isArray() && !fieldMap.getSource().isMap() && !fieldMap.getSource() .isEnum())); }
public boolean appliesTo(FieldMap fieldMap) { return (fieldMap.getSource().isMapKey() || fieldMap.getSource().isArrayElement() || fieldMap.getSource().isListElement()) && (ClassUtil.isImmutable(fieldMap.getDestination().getType()) || (!fieldMap.getDestination().isCollection() && !fieldMap.getDestination().isArray() && !fieldMap.getDestination().isMap() && !fieldMap.getDestination() .isEnum())); }