Package org.structr.core.property

Examples of org.structr.core.property.GenericProperty


      if (GraphObject.id.dbName().equals(dbName)) {
        return GraphObject.id;
      }

      if (createGeneric) {
        key = new GenericProperty(dbName);
      }
    }

    return key;
  }
View Full Code Here


        return GraphObject.id;
      }

      if (createIfNotFound) {

        key = new GenericProperty(jsonName);
      }
    }

    return key;
  }
View Full Code Here

    }

    // FIXME: use getPropertyKeyForName() of specific node type
    for (String key : contentNodes.keySet()) {
      augmentedPropertyKeys.add(new GenericProperty(key));
    }

    for (String subType : subTypes) {

      augmentedPropertyKeys.add(new GenericProperty(subType.toLowerCase().concat("s")));

    }

    return augmentedPropertyKeys;
  }
View Full Code Here

    Iterable<String> props = dbNode.getPropertyKeys();
    for (String key : props) {

      if (key.startsWith("data-")) {

        String value = getPropertyWithVariableReplacement(securityContext, renderContext, new GenericProperty(key));

        if (!(EditMode.RAW.equals(editMode) || EditMode.WIDGET.equals(editMode))) {

          value = escapeForHtmlAttributes(value);
View Full Code Here

    Iterable<String> props = dbNode.getPropertyKeys();
    for (String key : props) {

      if (key.startsWith("data-")) {

        allProperties.add(new GenericProperty(key));

      }

    }
View Full Code Here

          if (listData.isEmpty() && currentDataNode != null) {

          // There are two alternative ways of retrieving sub elements:
            // First try to get generic properties,
            // if that fails, try to create a propertyKey for the subKey
            final Object elements = currentDataNode.getProperty(new GenericProperty(subKey));
            renderContext.setRelatedProperty(new GenericProperty(subKey));
            renderContext.setSourceDataObject(currentDataNode);

            if (elements != null) {

              if (elements instanceof Iterable) {
View Full Code Here

           
            dummyObject = new GraphObjectMap();
            resultList.add(dummyObject);
          }
           
          dummyObject.setProperty(new GenericProperty(key), value);
        }

      }

    }
View Full Code Here

TOP

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

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.