本文整理了Java中org.opengis.feature.Property.setValue()
方法的一些代码示例,展示了Property.setValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.setValue()
方法的具体详情如下:
包路径:org.opengis.feature.Property
类名称:Property
方法名:setValue
[英]Sets the value or content of the property.
The class of newValue should be the same as or a subclass of getType().getBinding()
.
newValue may be null
if getDescriptor().isNillable()
is true
.
[中]设置属性的值或内容。
newValue的类应与getType().getBinding()
相同或是getType().getBinding()
的子类。
如果getDescriptor().isNillable()
为[$3$],则newValue可能为null
。
代码示例来源:origin: geotools/geotools
public void set(Object object, String xpath, Object value, Class target)
throws IllegalArgumentException {
((Property) object).setValue(value);
}
}
代码示例来源:origin: geotools/geotools
p.setValue(values);
} else if (p.getName().equals(ComplexFeatureConstants.FEATURE_CHAINING_LINK_NAME)) {
代码示例来源:origin: geotools/geotools
Object convertedValue =
FF.literal(value).evaluate(value, simpleContentType.getBinding());
simpleContent.setValue(convertedValue);
return attribute;
代码示例来源:origin: org.geotools/gt-main
public void set(Object object, String xpath, Object value, Class target)
throws IllegalArgumentException {
((Property)object).setValue( value );
}
}
代码示例来源:origin: org.geotools/gt-app-schema
p.setValue(values);
} else if (p.getName().equals(ComplexFeatureConstants.FEATURE_CHAINING_LINK_NAME)) {
代码示例来源:origin: org.geoserver.csw/gs-csw-core
parentProperty.setValue(updatedOnlineResources);
代码示例来源:origin: org.geoserver.community/gs-oseo-core
private void setAttribute(Feature sf, String name, Object value) {
Property p = sf.getProperty(name);
if (p != null) {
p.setValue(value);
} else {
List<Property> properties = new ArrayList<>(sf.getValue());
AttributeDescriptor ad = (AttributeDescriptor) sf.getType().getDescriptor(name);
properties.add(new AttributeImpl(value, ad, null));
}
}
内容来源于网络,如有侵权,请联系作者删除!