public void encodeWithCoder(NSCoder coder) { coder.encodeObject(this.errorMessage); coder.encodeObject(this.conditionKey); coder.encodeBoolean(this.asLessThan); coder.encodeBoolean(this.asEquals); coder.encodeBoolean(this.asNotEquals); coder.encodeBoolean(this.asGreaterThan); }
public static Object decodeObject(NSCoder coder) { return new AttributeCondition( (String) coder.decodeObject(), (String) coder.decodeObject(), coder.decodeBoolean(), coder.decodeBoolean(), coder.decodeBoolean(), coder.decodeBoolean()); }
public static Object decodeObject(Class assignmentClass, NSCoder coder) { try { Constructor constructor = assignmentClass.getConstructor(new Class[] {String.class, String.class}); SelfAssignment clone = (SelfAssignment) constructor.newInstance( (Object[]) new String[] {(String) coder.decodeObject(), (String) coder.decodeObject()}); return clone; } catch (NoSuchMethodException nsme) { throw new ForwardException(nsme); } catch (InvocationTargetException ite) { throw new ForwardException(ite); } catch (InstantiationException ie) { throw new ForwardException(ie); } catch (IllegalAccessException iae) { throw new ForwardException(iae); } }
public void encodeWithCoder(NSCoder coder) { coder.encodeObject(subqualifier()); coder.encodeObject(baseKeyPath()); }
public static Object decodeObject(NSCoder coder) { EOQualifier subqualifier = (EOQualifier) coder.decodeObject(); String baseKeyPath = (String) coder.decodeObject(); return new ERXExistsQualifier(subqualifier, baseKeyPath); }
public void encodeWithCoder(NSCoder coder) { coder.encodeObject(this.errorMessage); coder.encodeObject(this.firstCondition); coder.encodeObject(this.secondCondition); }
public void encodeWithCoder(NSCoder coder) { coder.encodeObject(this.keyPath); coder.encodeObject(this.value); }