/** * Set a value from the given object after validating. * * @param obj can be null to set the Specification to null. */ @Override public void set(Object obj) { if (obj == null) { super.set(null); return; } if (obj instanceof Specification == false) { throw new UserException(_loc.get("spec-wrong-obj", obj, obj.getClass())).setFatal(true); } validateOverwrite((Specification)obj); super.set(obj); }
/** * Set a value from the given object after validating. * * @param obj can be null to set the Specification to null. */ @Override public void set(Object obj) { if (obj == null) { super.set(null); return; } if (obj instanceof Specification == false) { throw new UserException(_loc.get("spec-wrong-obj", obj, obj.getClass())).setFatal(true); } validateOverwrite((Specification)obj); super.set(obj); }
/** * Set a value from the given object after validating. * * @param obj can be null to set the Specification to null. */ @Override public void set(Object obj) { if (obj == null) { super.set(null); return; } if (obj instanceof Specification == false) { throw new UserException(_loc.get("spec-wrong-obj", obj, obj.getClass())).setFatal(true); } validateOverwrite((Specification)obj); super.set(obj); }
/** * Set a value from the given object after validating. * * @param obj can be null to set the Specification to null. */ @Override public void set(Object obj) { if (obj == null) { super.set(null); return; } if (obj instanceof Specification == false) { throw new UserException(_loc.get("spec-wrong-obj", obj, obj.getClass())).setFatal(true); } validateOverwrite((Specification)obj); super.set(obj); }