本文整理了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
[英]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()) {
内容来源于网络,如有侵权,请联系作者删除!