コード例 #1
0
 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);
 }
コード例 #2
0
 public static Object decodeObject(NSCoder coder) {
   return new AttributeCondition(
       (String) coder.decodeObject(),
       (String) coder.decodeObject(),
       coder.decodeBoolean(),
       coder.decodeBoolean(),
       coder.decodeBoolean(),
       coder.decodeBoolean());
 }
コード例 #3
0
  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);
    }
  }
コード例 #4
0
 public void encodeWithCoder(NSCoder coder) {
   coder.encodeObject(subqualifier());
   coder.encodeObject(baseKeyPath());
 }
コード例 #5
0
 public static Object decodeObject(NSCoder coder) {
   EOQualifier subqualifier = (EOQualifier) coder.decodeObject();
   String baseKeyPath = (String) coder.decodeObject();
   return new ERXExistsQualifier(subqualifier, baseKeyPath);
 }
コード例 #6
0
 public void encodeWithCoder(NSCoder coder) {
   coder.encodeObject(this.errorMessage);
   coder.encodeObject(this.firstCondition);
   coder.encodeObject(this.secondCondition);
 }
コード例 #7
0
 public void encodeWithCoder(NSCoder coder) {
   coder.encodeObject(this.keyPath);
   coder.encodeObject(this.value);
 }