Package org.structr.core.property

Examples of org.structr.core.property.StringProperty


        if (value == null) {

          if (!options.isEmpty()) {

            errorBuffer.add(Widget.class.getSimpleName(), new ValueToken(new StringProperty(key), options.toArray()));

          } else {

            errorBuffer.add(Widget.class.getSimpleName(), new EmptyPropertyToken(new StringProperty(key)));
          }

        } else {

          // replace and restart matching process
View Full Code Here


    final Map<String, String> metadata = AVConv.newInstance(securityContext, this).getMetadata();
    final RestMethodResult result      = new RestMethodResult(200);
    final GraphObjectMap map           = new GraphObjectMap();

    for (final Entry<String, String> entry : metadata.entrySet()) {
      map.setProperty(new StringProperty(entry.getKey()), entry.getValue());
    }

    result.addContent(map);

    return result;
View Full Code Here

    final Set<PropertyKey> propertyKeys = new LinkedHashSet<>(Iterables.toList(super.getPropertyKeys(propertyView)));

    // add "custom" property keys as String properties
    for (final String key : SchemaHelper.getProperties(getRelationship())) {

      final PropertyKey newKey = new StringProperty(key);
      newKey.setDeclaringClass(getClass());

      propertyKeys.add(newKey);
    }

    return propertyKeys;
View Full Code Here

              // remove "[]" from the end and append "Array" to match the appropriate parser
              propertyTypeName = propertyTypeName.substring(0, propertyTypeName.length() - 2).concat("Array");
            }

            propertyMap.put(new StringProperty("_".concat(propertyName)), propertyTypeName);
          }

          // set node type which is in "name" property
          propertyMap.put(AbstractNode.name, type);
View Full Code Here

    final GraphDatabaseService graphDb     = getService(NodeService.class).getGraphDb();
    final SecurityContext superUserContext = SecurityContext.getSuperUserInstance();
    final NodeFactory nodeFactory          = new NodeFactory(superUserContext);
    final RelationshipFactory relFactory   = new RelationshipFactory(superUserContext);
    final App app                          = StructrApp.getInstance();
    final StringProperty uuidProperty      = new StringProperty("uuid");
    final int txLimit                      = 2000;

    boolean hasChanges                     = true;
    int actualNodeCount                    = 0;
    int actualRelCount                     = 0;
View Full Code Here

TOP

Related Classes of org.structr.core.property.StringProperty

Copyright © 2018 www.massapicom. 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.