Package org.structr.core.property

Examples of org.structr.core.property.PropertyKey.jsonName()


                continue;

              } else {

                writer.name(localKey.jsonName());
                serializeProperty(writer, key, value, localPropertyView, depth+1);

              }

            } else {
View Full Code Here


              }

            } else {

              writer.name(localKey.jsonName()).nullValue();
            }
          }
        }
      }
View Full Code Here

              localKey = id;
            }

            if (value != null) {

              jsonObject.add(localKey.jsonName(), serializeProperty(key, value, localPropertyView, depth+1));

            } else {

              jsonObject.add(localKey.jsonName(), null);
            }
View Full Code Here

              jsonObject.add(localKey.jsonName(), serializeProperty(key, value, localPropertyView, depth+1));

            } else {

              jsonObject.add(localKey.jsonName(), null);
            }
          }
        }
      }
View Full Code Here

            key = id;
          }

          Object value = entry.getValue();

          object.add(key.jsonName(), serializeProperty(key, value, localPropertyView, depth));
        }
      }

      return object;
    }
View Full Code Here

        for (Map.Entry<PropertyKey, Object> entry : source.entrySet()) {

          final PropertyKey key   = entry.getKey();
          final Object value      = entry.getValue();

          writer.name(key.jsonName());
          serializeProperty(writer, key, value, localPropertyView, depth+1);
        }
      }

      writer.endObject();
View Full Code Here

      // fetch notion
      final Notion notion = relationProperty.getNotion();
      final PropertyKey primaryPropertyKey = notion.getPrimaryPropertyKey();

      // apply notion if the property set contains the ID property as the only element
      if (primaryPropertyKey != null && propertySet.containsKey(primaryPropertyKey.jsonName()) && propertySet.size() == 1) {

        /*
         * FIXME: is this needed at all??
         *
         // the notion that is defined for this relationship can deserialize
View Full Code Here

      PropertyKey key = entry.getKey();
      Object value    = entry.getValue();
     
      if (value == null) {
        vals.add(key.jsonName(), null);
      } else {
        vals.add(key.jsonName(), new JsonPrimitive(value.toString()));
      }
    }
View Full Code Here

      Object value    = entry.getValue();
     
      if (value == null) {
        vals.add(key.jsonName(), null);
      } else {
        vals.add(key.jsonName(), new JsonPrimitive(value.toString()));
      }
    }

    obj.add(getErrorToken(), vals);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.