如何获得 属性 类型

How to get property types

可以获取某些模型节点的属性:

model.getProperties(nodeId, /*success handler*/, /*error handler*/)

结果是这样的: properties list

属性 说明中有字段 "type",看起来像 ID。我可以找到有关 属性 类型的信息吗?我如何确定它是可数字的还是按字母顺序的?

以下是执行属性提取的 C++ 代码中的类型值:

enum AttributeType {

  /* Numeric types */
  Unknown                 = 0,
    Boolean,
    Integer,
    Double,

    /* Special types */
    BLOB                    = 10,
    DbKey, /* reprensets a link to another object in the database, using database internal ID */

    /* String types */
    String                  = 20,
    LocalizableString,
    DateTime,       /* ISO 8601 date */
    GeoLocation,    /* LatLonHeight - ISO6709 Annex H string, e.g: "+27.5916+086.5640+8850/" for Mount Everest */
    Position        /* "x y z w" space separated string representing vector with 2,3 or 4 elements*/
};