Ejemplo n.º 1
0
 public void encodeWithKeyValueArchiver(EOKeyValueArchiver eokeyvaluearchiver) {
   super.encodeWithKeyValueArchiver(eokeyvaluearchiver);
   if (mutableUserInfo != null && mutableUserInfo.allKeys().count() > 0)
     eokeyvaluearchiver.encodeObject(mutableUserInfo, "userInfo");
   ((NSMutableDictionary) eokeyvaluearchiver.dictionary())
       .setObjectForKey("com.webobjects.directtoweb.Rule", "class");
 }
Ejemplo n.º 2
0
  public ERD2WExtendedRule cloneRule() {
    EOKeyValueArchiver archiver = new EOKeyValueArchiver();
    encodeWithKeyValueArchiver(archiver);
    EOKeyValueUnarchiver unarchiver = new EOKeyValueUnarchiver(archiver.dictionary());

    return new ERD2WExtendedRule(unarchiver);
  }
 public void encodeWithKeyValueArchiver(EOKeyValueArchiver keyValueArchiver) {
   keyValueArchiver.encodeObject(this.errorMessage, ERROR_MESSAGE_KEY);
   keyValueArchiver.encodeObject(this.conditionKey, CONDITION_KEY_KEY);
   keyValueArchiver.encodeBool(this.asLessThan, AS_LESS_THAN_KEY);
   keyValueArchiver.encodeBool(this.asEquals, AS_EQUALS_KEY);
   keyValueArchiver.encodeBool(this.asNotEquals, AS_NOT_EQUALS_KEY);
   keyValueArchiver.encodeBool(this.asGreaterThan, AS_GREATER_THAN_KEY);
 }
  protected static String encode(NSArray rules) {
    if (rules != null) {
      EOKeyValueArchiver archiver = new EOKeyValueArchiver();

      archiver.encodeObject(rules, RuleModel.RULES_KEY);

      return NSPropertyListSerialization.stringFromPropertyList(
          transformDictionary(archiver.dictionary(), RuleModelUtilities.compressionLookup()));
    } else {
      return null;
    }
  }
Ejemplo n.º 5
0
 public void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver) {
   archiver.encodeObject(subqualifier(), "subqualifier");
   archiver.encodeObject(baseKeyPath(), "baseKeyPath");
 }
 public void encodeWithKeyValueArchiver(EOKeyValueArchiver keyValueArchiver) {
   keyValueArchiver.encodeObject(this.errorMessage, ERROR_MESSAGE_KEY);
   keyValueArchiver.encodeObject(this.firstCondition, FIRST_CONDITION_KEY);
   keyValueArchiver.encodeObject(this.secondCondition, SECOND_CONDITION_KEY);
 }
Ejemplo n.º 7
0
 public String objectAsString(Rule o) {
   EOKeyValueArchiver eokeyvaluearchiver = new EOKeyValueArchiver();
   o.encodeWithKeyValueArchiver(eokeyvaluearchiver);
   return NSPropertyListSerialization.stringFromPropertyList(eokeyvaluearchiver.dictionary());
 }
 public void encodeWithKeyValueArchiver(EOKeyValueArchiver keyValueArchiver) {
   keyValueArchiver.encodeObject(this.keyPath, KEYPATH_KEY);
   keyValueArchiver.encodeObject(this.value, VALUE_KEY);
 }