如何获取属性类型 [英] How to get property types

查看:28
本文介绍了如何获取属性类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

There is possibility to get properties for some model node:

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

结果是这样的:属性列表

属性描述具有看起来像 ID 的字段类型".我可以在那里找到有关房产类型的信息?我如何确定它是可数的还是按字母顺序排列的?

Property description has field "type" that looks like ID. There can I find info about property types? How can I determine is it numerable or alphabetical?

推荐答案

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

Here are the type values from the C++ code that performs properties extraction:

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*/
};

这篇关于如何获取属性类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆