本文整理了Java中org.nuxeo.ecm.core.api.model.Property.getName()
方法的一些代码示例,展示了Property.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.getName()
方法的具体详情如下:
包路径:org.nuxeo.ecm.core.api.model.Property
类名称:Property
方法名:getName
[英]Gets the property name.
[中]获取属性名。
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@Override
public Serializable internalGetValue() throws PropertyException {
// noinspection CollectionDeclaredAsConcreteClass
HashMap<String, Serializable> map = new HashMap<String, Serializable>();
for (Property property : getChildren()) {
map.put(property.getName(), property.getValue());
}
return map;
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@Override
public Collection<String> getDirtyFields() {
Collection<String> dirtyFields = new ArrayList<String>();
for (Property prop : dp.getChildren()) {
if (prop.isDirty()) {
dirtyFields.add(prop.getName());
}
}
return dirtyFields;
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
public final Property getChild(Field field) {
Property property = getNonPhantomChild(field);
if (property == null) {
property = getRoot().createProperty(this, field, IS_PHANTOM);
children.put(property.getName(), property); // cache it
}
return property;
}
代码示例来源: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-io
protected void writeComplexProperty(JsonGenerator jg, Property prop) throws IOException {
jg.writeStartObject();
for (Property p : prop.getChildren()) {
jg.writeFieldName(p.getName());
writeProperty(jg, p);
}
jg.writeEndObject();
}
代码示例来源:origin: org.nuxeo.ecm.automation/nuxeo-automation-core
protected void writeMapProperty(JsonGenerator jg, ComplexProperty prop, PropertyConsumer fieldNameWriter)
throws PropertyException, IOException {
if (!writeEmpty && (prop == null || prop.getChildren().isEmpty())) {
return;
}
fieldNameWriter.accept(jg, prop);
jg.writeStartObject();
PropertyConsumer childFieldWriter = (j, p) -> j.writeFieldName(p.getName());
for (Property p : prop.getChildren()) {
writeProperty(jg, p, childFieldWriter);
}
jg.writeEndObject();
}
代码示例来源:origin: org.nuxeo.ecm.routing/nuxeo-routing-core
private Map<String, Serializable> getVariables(JsonNode variables, String schemaName) throws IOException {
Map<String, Serializable> variable = new HashMap<>();
ParameterizedType genericType = TypeUtils.parameterize(List.class, Property.class);
try (Closeable resource = ctx.wrap().with(DEFAULT_SCHEMA_NAME, schemaName).open()) {
List<Property> properties = readEntity(List.class, genericType, variables);
for (Property property : properties) {
variable.put(property.getName().substring(schemaName.length() + 1), property.getValue());
}
}
return variable;
}
代码示例来源:origin: org.nuxeo.ecm.routing/nuxeo-routing-core
private Map<String, Serializable> getVariables(JsonNode variables, String schemaName) throws IOException {
Map<String, Serializable> variable = new HashMap<>();
ParameterizedType genericType = TypeUtils.parameterize(List.class, Property.class);
try (Closeable resource = ctx.wrap().with(DEFAULT_SCHEMA_NAME, schemaName).open()) {
List<Property> properties = readEntity(List.class, genericType, variables);
for (Property property : properties) {
variable.put(property.getName().substring(schemaName.length() + 1), property.getValue());
}
}
return variable;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
data = DateParser.formatW3CDateTime(((Calendar) data).getTime());
formData.put(property.getName(), data);
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-rendering
@Override
public TemplateCollectionModel keys() throws TemplateModelException {
List<String> list = new ArrayList<String>(property.size());
for (Property p : property.getChildren()) {
list.add(p.getName());
}
return new CollectionAndSequence(new SimpleSequence(list, wrapper));
}
代码示例来源:origin: org.nuxeo.ecm.automation/nuxeo-automation-core
/**
* Converts the value of the given core property to JSON.
* <p />
* CAUTION: this method will write the field name to {@link JsonGenerator} with its prefix without writing the start
* and the end of object.
*
* @since 9.1
*/
public void writeProperty(JsonGenerator jg, Property prop) throws PropertyException, IOException {
PropertyConsumer fieldNameWriter;
if (prefix == null) {
fieldNameWriter = (j, p) -> j.writeFieldName(p.getName());
} else {
fieldNameWriter = (j, p) -> j.writeFieldName(prefix + ':' + p.getField().getName().getLocalName());
}
writeProperty(jg, prop, fieldNameWriter);
}
代码示例来源:origin: org.nuxeo.elasticsearch/nuxeo-elasticsearch-core
prop.getName()));
prop.setValue(bucket.getKey());
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-mongodb
value = ((Calendar) value).getTime();
fieldMap.put(prop.getName(), value);
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-io
List<Property> properties = readEntity(List.class, genericType, propsNode);
for (Property property : properties) {
String propertyName = property.getName();
代码示例来源:origin: toutatice-services.carto-nat/toutatice-carto-nat-ecm
jg.writeStartObject();
for (Property childProp : childrenProps) {
String childPropName = childProp.getName();
jg.writeFieldName(childPropName);
JsonESDocumentWriter.writePropertyValue(jg, childProp, null);
内容来源于网络,如有侵权,请联系作者删除!