本文整理了Java中org.nuxeo.ecm.core.api.model.Property.getValueForWrite()
方法的一些代码示例,展示了Property.getValueForWrite()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.getValueForWrite()
方法的具体详情如下:
包路径:org.nuxeo.ecm.core.api.model.Property
类名称:Property
方法名:getValueForWrite
[英]Gets the property normalized value for write.
Can be different fropm #getValue() in cases where the property adapts the value it is given to store.
[中]获取写入的属性规范化值。
在属性调整给定存储的值的情况下,fropm#getValue()可以不同。
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@Override
public Serializable getValueForWrite() throws PropertyException {
if (isPhantom() || isRemoved()) {
return getDefaultValue();
}
if (children.isEmpty()) {
return new ArrayList<String>();
}
// noinspection CollectionDeclaredAsConcreteClass
ArrayList<Object> list = new ArrayList<Object>(children.size());
for (Property property : children) {
list.add(property.getValueForWrite());
}
return list;
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@Override
public Serializable getValueForWrite() throws PropertyException {
if (isPhantom() || isRemoved()) {
return getDefaultValue();
}
HashMap<String, Serializable> map = new HashMap<String, Serializable>();
for (Property property : getChildren()) {
map.put(property.getName(), property.getValueForWrite());
}
return map;
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-storage
if (type.isSimpleType()) {
Serializable value = property.getValueForWrite();
state.setSingle(name, value);
} else if (type.isComplexType()) {
if (listType.getFieldType().isSimpleType()) {
Serializable value = property.getValueForWrite();
if (value instanceof List) {
List<?> list = (List<?>) value;
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-storage
Object value = property.getValueForWrite();
Type type = property.getType();
boolean equals;
内容来源于网络,如有侵权,请联系作者删除!