@Override public boolean setValue(Object target, String attrName, Object value, String type) { if (JsonIdMap.REMOVE.equals(type) && value != null) { attrName = attrName + type; } if (PaneeleGroove.PROPERTY_LENGTH.equalsIgnoreCase(attrName)) { ((PaneeleGroove) target).withLength(Double.parseDouble(value.toString())); return true; } if (PaneeleGroove.PROPERTY_WIDE.equalsIgnoreCase(attrName)) { ((PaneeleGroove) target).withWide(Double.parseDouble(value.toString())); return true; } if (PaneeleGroove.PROPERTY_ROOM.equalsIgnoreCase(attrName)) { ((PaneeleGroove) target).setRoom((Room) value); return true; } return false; }
@Override public void removeObject(Object entity) { ((PaneeleGroove) entity).removeYou(); }