org.nuxeo.ecm.core.api.model.Property.isComplex()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中org.nuxeo.ecm.core.api.model.Property.isComplex()方法的一些代码示例,展示了Property.isComplex()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.isComplex()方法的具体详情如下:
包路径:org.nuxeo.ecm.core.api.model.Property
类名称:Property
方法名:isComplex

Property.isComplex介绍

[英]Tests whether this property is of a map (complex) type.
[中]测试此属性是否为映射(复杂)类型。

代码示例

代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-io

protected void writeProperty(JsonGenerator jg, Property prop) throws IOException {
  if (prop.isScalar()) {
    writeScalarProperty(jg, prop);
  } else if (prop.isList()) {
    writeListProperty(jg, prop);
  } else if (prop instanceof BlobProperty) { // a blob
    writeBlobProperty(jg, (BlobProperty) prop);
  } else if (prop.isComplex()) {
    writeComplexProperty(jg, prop);
  } else if (prop.isPhantom()) {
    jg.writeNull();
  }
}

代码示例来源:origin: org.nuxeo.ecm.webengine/nuxeo-webengine-core

} else if (p.isComplex()) {
  if (p.getClass() == BlobProperty.class) {

代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-io

if (input.isComplex()) {
  GenericRecord record = new GenericData.Record(schema);
  for (Field f : schema.getFields()) {

相关文章